When looping through all address book contacts is there a way to see whether a record is a Facebook-only record? That is address book records that are inserted when adding Facebook in iOS Settings.
I am trying to skip these records and only look at records that are user-entered or synced from other sources.
Thank you
Every
ABPerson
record belongs to exactly oneABSource
.When you iterate through all the person records, call
ABPersonCopySource(person)
on each. Facebook records should all be associated with a particular source record. I'm not sure how to identify it: possibly thekABSourceNameProperty
for that source record will contain "Facebook".