Facebook API - Mutual Friends

Is there a way to retrieve a list of mutual friends between /me/ and a certain {facebook id}

I thought this was possible with 1.0, but am wondering if it can still be done with 2.0


Yes, this is possible. Graph API v2.0 introduced a new endpoint

GET /{user-id}.context/mutual_friends

which is described at https://developers.facebook.com/docs/graph-api/reference/v2.1/user.context/mutual_friends

There's a summary.total_count field in the result of the call which contains the number of mutual friends.

There is a way in which you could get access to all mutual friends (not only the ones using yout app) in API v2.

There is a special request. This is the detail:

All Mutual Friends API

The All Mutual Friends API gives you access to all the mutual friends between two people who use your app. The response includes mutual friends who use your app as well as limited information about mutual friends who don’t use your app.

Common Usage

Display social context between the person using your app, and another app user

Use the token returned for non-app mutual friends to link to that person's Facebook profile

Surface the mutual friends of two people who use your app to anyone other than those to people

Store the names and profile pictures of the mutual friends

Any non-visible use of this information, for example for recommendations and ranking

Here's the link:


Need Your Help

Why is Element not Found, Except in jsfiddle?

javascript jquery html

Why can't this JavaScript find the input element with id="filesToUpload" in the HTML below it, except in jsfiddle? In jsfiddle, this code provides the functionality to select multiple image files, ...

php multiple file upload not working at server

php file-upload upload

I've shared hosting and there is a script to upload multiple files at once at server,