For mutual friends in v2.0 you should use https://developers.facebook.com/docs/graph-api/reference/v2.0/user.context/mutual_friends
Is there any way of getting mutual friends in OpenGraph v2.0
-
16-07-2023 - |
Question
Is there a way to get the mutual friends of 2 facebook users in OpenGraph v2.0? How about if they are both users of my app?
UPDATE: Based on my research, you can get only mutual friends that are USING your app using the mutual_friends user context api There is no way to get ALL mutual friends
Solution
OTHER TIPS
You can try calling the following API endpoint:
https://graph.facebook.com/v2.0/{friend_id}/friends
Depending on privacy settings for the user, you will see mutual friends of both users. e.g.:
{
"data": [
{
"name": "Jane Smith",
"id": "xxxxxx"
},
{
"name": "John Smith",
"id": "yyyyyy"
},
{
"name": "Joe Blogs",
"id": "zzzzzz"
}
],
"paging": {
"next": "..."
}
}
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow