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

有帮助吗?

其他提示

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": "..."
  }
}
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top