Search code examples
facebookfacebook-graph-api

How to get Mutual Friends via Facebook's Graph API


Is there anyway to get a list of mutual friends using Facebook's Graph API?

I've been playing around with this tool and haven't yet figured out a way. However, I saw Simon's demo on Facebook's site, and it sounded like he was able to get the mutual likes of friend of his (it was too blurry to see how he did it so) so I feel like I ought to be able to, but I can't find any documentation besides some php scripts.


Solution

  • The Mutual Friends API was deprecated on April 4, 2018, and the endpoints below started returning empty data sets. The endpoints are now fully deprecated and will return an error. https://developers.facebook.com/docs/graph-api/changelog/version3.1#mutual-friends-api

    You can use this one to get mutuals friends from the graph

    https://developers.facebook.com/tools/explorer/?method=GET&path=me%2Fmutualfriends%2F1207059