Reputation: 649
On iOS, I want to know if the user has enabled the contacts app to include Facebook contacts. (He does so in the iPhone settings under "Facebook", where apps are listed that can connect with facebook). When the Contacts app can connect with Facebook, the user has the option to check "All facebook" in Contacts, so I figured it might be simply a group. But after checking the names of all groups on a test device (where Contacts is connected with Facebook), no group named "all facebook" or similar showed up. So I am wondering: is there any way at all to know if Contacts includes Facebook friends? I did not find anything in the documentation.
Thanks very much in advance.
Upvotes: 0
Views: 400
Reputation: 471
External sources in iOS are not represented as groups, they are defined as ABSource
records.
Look for ABSource
records where KABSourceTypeProperty
is NOT set to KABSourceTypeLocal
. That will pick up everything besides device-local and iCloud-synced contacts. I'm not sure how to identify which source (Facebook, Exchange etc.) a particular ABSource
refers to.
Upvotes: 1