| Please note: We are in the process of deprecating the REST API. We have added a Graph API equivalent of this call which is the 'mutualfriends' connection of the User object. An example call to this is `/PROFILE_ID/mutualfriends/FRIEND_ID` which will return the mutual friends that PROFILE_ID has with FRIEND_ID. |
Returns the Facebook user IDs of the mutual friends between the source user and target user. For the source user, you can either specify the source's user ID (the source_id) or use the session key of the logged-in user, but not specify both.
The source user must have authorized your application.
Privacy applies to the results of this method: If the source user chooses to not show friends on his or her public profile, then no mutual friends get returned. If a mutual friend chooses to be hidden from search results, then that user's UID does not get returned from this call.
| Name | Type | Description |
|---|---|---|
| target_uid | int | The user ID of one of the target user whose mutual friends you want to retrieve. |
| callback | string | Name of a function to call. This is primarily to enable cross-domain JavaScript requests using the <script> tag, also known as JSONP, and works with both the XML and JSON formats. The function will be called with the response passed as the parameter. |
| source_uid | int | The user ID of the other user for which you are getting mutual friends of. Defaults to the current session user. Specify the |
This method returns an array of user IDs of the mutual friends, or an error code.
Privacy Note: The friend IDs returned are the friends that are visible to Facebook Platform.