找不到Facebook联系人在RawContacts [英] Cannot find Facebook contacts in RawContacts
问题描述
我试图建立一个联络人 - 管理应用程序。在我的手机我有一对夫妇的帐户,包括Facebook和HTC的Facebook联系人。出于某种原因,我不能检索的 RawContacts
表这些接触 ContactsContract
:
I'm trying to build a contacts-managing application. On my phone I have contacts from a couple of accounts including Facebook and HTC Facebook. For some reason I cannot retrieve these contacts from the RawContacts
table of ContactsContract
:
managedQuery(ContactsContract.RawContacts.CONTENT_URI, new String[] {
ContactsContract.RawContacts._ID,
ContactsContract.RawContacts.CONTACT_ID,
ContactsContract.RawContacts.ACCOUNT_NAME,
ContactsContract.RawContacts.ACCOUNT_TYPE,
}, ContactsContract.RawContacts.ACCOUNT_TYPE + " = 'com.facebook.auth.login'", null, null)
该查询返回任何结果。如果我repace与 com.htc.socialnetwork.facebook
帐户类型,我还是没有结果。上有我的电话很多Facebook联系人;如何找回它们?
This query returns no results. If I repace the account type with com.htc.socialnetwork.facebook
, I still get no results. There are many Facebook contacts on my phone; how to retrieve them?
推荐答案
是的,Facebook联系人固定,但有一点偷偷摸摸的SQLite注射被劫持。 NO-我不打算在这里发布此页面上,但有不只是使用Facebook的认证,并获得了接触这样任何理由吗? Facebook的联系人真的没有任何东西在他们有用无论如何,它只是更安全,更可能所有的工作
Yes, the Facebook contacts are secured, but can be hijacked with a little sneaky SQLite Injection. NO- I am not going to post here on this page, but is there any reason you do not just use Facebook authentication and get the contacts THAT way? The Facebook contacts don't really have anything useful in them anyway, and it is just more secure and more likely to work ALL the
这篇关于找不到Facebook联系人在RawContacts的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!