Replicating Parse.com Anypic In Javascript - Unable To Compare Fb Users
Solution 1:
The only way to do this reliably, which has nothing to do with language, is a multi-step process:
One: Provide a way to "connect to facebook". In this process, you pull the user's facebook id and store it as a field on the user profile in parse. This is the field you need to match friends.
You will only be able to reliably match the user's friends who has ALSO CONNECTED THEIR APP TO FACEBOOK (and thereby stored their facebook id in their user profile).
Two: Perform a query against Parse with the user's friends' facebook IDs. For every friend facebook id you find in your Parse user database, you display their name etc FROM FACEBOOK (so they recognize them easily).
This means that when you add this functionality, nobody will find their friends from facebook in their app. Only when some of their friends connect to facebook will they be able to find facebook friends like this.
You can i.e. check for this on app launch, and then notify the user that some of their facebook friends are now using your app.
Post a Comment for "Replicating Parse.com Anypic In Javascript - Unable To Compare Fb Users"