React-Native get facebook thumbnail from contacts

Hi guys,

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?

Thanks

[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?

Hi Paul,

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.

Yes - if the referrer string has “facebook.com” somewhere within it, then it’s a fairly save bet that they’re coming from facebook.

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.

Thanks for helping me out, Paul.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.