Search code examples
facebookfacebook-friends

Facebook API Mutual Friends Count (Count Only)


I would like to show mutual friends (Just a number X mutual friends - no other information) on a users profile who has signed up in an app I am working on.

We had planned to do this using the list of friends ID's however this is now not accessible since Facebook updated it's permissions around this.

Is there any way to do this now? I was looking at taggable_friends, would we be able to use this for that.

Thankyou


Solution

  • Have a look at my answer at Fetch Facebook Mutual friends between me and another User

    This should solve your question. The docs are here: https://developers.facebook.com/docs/graph-api/reference/v2.1/user.context/mutual_friends

    Use the summary.total_count filed of the response to determine how many friends the two users have in common.