I’m using react-native-contacts and the Facebook API. I’ve been searching to see whether I can detect if a contact from a mobile phone is using Facebook. And if it is, then load up the facebook profile thumbnail to the contact on my app. But unfortunately I haven’t had any luck when searching. Is this even possible?
[quote=“shurns, post:1, topic:286857, full:true”]
I’ve been searching to see whether I can detect if a contact from a mobile phone is using Facebook. And if it is, then load up the facebook profile thumbnail to the contact on my app.[/quote]
Can you investigate document.referrer to find out where they’re coming from?
Since I’m using React-Native, I’m unable to log document.referrer. And when you say where they’re coming from, do you mean what the values returns when I get contacts in React-Native? Apologies, I probably misunderstood.
After investigating, I haven’t seen the referrer string that has “facebook.com” or “fb”, unfortunately. Doing some research on the Gaph Api, it looks like I would be unable to look up the contacts by the email or phone number to see if it matches with the contacts on the phone it seems.