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

Was it helpful?

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
scroll top