Access to Facebook friends via the contacts provider is restricted to a handful of system apps by the provider itself. Other applications cannot read that data. On Dec 21, 2010 10:58 PM, "Mathias Lin" <m...@mathiaslin.com> wrote: > How to get the facebook id or url of a contacts that's been synced to > the native contacts app via Facebook sync adapter? > > I went through different urls, but didn't see any info regarding > facebook. > > I tried > > ContactsContract.Data.CONTENT_URI > ContactsContract.CommonDataKinds.Email.CONTENT_URI > ContactsContract.CommonDataKinds.Phone.CONTENT_URI > ContactsContract.Contacts.CONTENT_URI > > as URIs already in the code below: > > Uri uri = ContactsContract.Data.CONTENT_URI; > Cursor c = getContentResolver().query(uri, null, null, null, > null); > while (c.moveToNext()) { > for (int i=0; i<c.getColumnCount(); i++) { > Log.d(TAG, c.getColumnName(i) + ": " + c.getString(i)); > } > Log.d(TAG, "=================================="); > > } > > I do get a column value like > > contact_status_res_package: com.facebook.katana > > in this dump, and I also get the contacts status (column > 'contact_status'), but nowhere do I see the facebook url or id of this > contact. > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en
-- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en