How to make mutual friends through the Facebook Graph API

Anyway, to get a list of friends using the Facebook Graph API?

I played with this tool and still do not understand the way. However, I saw the Simon daemon on Facebook, and it sounded like he could get the mutual sympathy of his friend (it was too blurry to see how he did it), so I feel like I should be able to but i can't find any documentation except some php scripts.

+7
source share
3 answers
+11
source

Go to the API documentation page:

http://developers.facebook.com/docs/reference/api/

In the middle of the page you will see:

โ€ข Friends: https://graph.facebook.com/me/friends?access_token= ...

You will need to replace / me / with the valid identifier of the person you are looking for, and you will also need to get access_token.

Hope this starts you in the right direction.

EDIT: It could also be simpler:

http://developers.facebook.com/docs/reference/rest/friends.getMutualFriends/

Inherited REST Method

+1
source

I would do this as an FQL query and test it using the FQL Tester . It may not be 100% what you are looking for, but it should be enough for you to start:

SELECT uid1, uid2 FROM friend WHERE uid1 IN (SELECT uid2 FROM friend WHERE uid1=me()) AND uid2 IN (SELECT uid2 FROM friend WHERE uid1=me()) 

Then you can find this identifier against the user table.

+1
source

All Articles