I want to determine if two users (both using my app) have any mutual friends in common. The names/data of the users are irrelevant, the number of the mutual friends is irrelevant. I just need if two people have any friends on Facebook in common or not. The mutual friends may not be using the app, but the two ends ARE using my app. These were pretty easy in Graph API 1.0, but I'm wondering if what I'm trying to achieve is possible by any means in Graph API 2.0 or 2.1?
Determining if two app using users have any mutual friends in Graph API 2.0/2.1?
918 views Asked by Can Poyrazoğlu At
2
There are 2 answers
1
cck
On
Sorry to say, user A & B have to be friends if you want to use
/v.2.2/{user-id}?fields=context.fields(mutual_friends)
to check their mutual friends (e.g. C,D,E,F...)
I had double checked as @WizKid said, with the following sample:
1. A & B are friends, run the mutual_friends Graph API call ===> Found
2. unfriend A & B, run the same mutual_friends Graph API call ===> No data
3. Be-friended A & B again, run same Graph API call ===> Found
Related Questions in FACEBOOK
- Facebook Post Images from local system on own Page
- Provide an archipelago name that humans cannot utter
- How can I look this email address
- Not getting all leads from Meta/Facebook using webhook for page leadgens
- Unsupported post request when trying to create a custom audience via the endpoint https://graph.facebook.com/lapi-version), (custom-audience-id/users)
- Java resized JPEG seems to be invalid format for Facebook?
- How to implement facebook pixel in flutter in 2024 any example?
- Need WhatsApp Data Backup from Api
- Facebook login via JS-SDK via OAuth will get stuck half-way
- Short time token with the Graph API and Facebook login through the iOS SDK
- Facing the "Messaging may be unavailable" error - WhatsApp Cloud API
- Facebook Graph API - Story endpoint does not return all active stories
- Javascript / Dynamically append text element above embedded facebook posts
- When I post text with media on Facebook, the text does not show
- How to search a list of groups using facebook APIs
Related Questions in FACEBOOK-GRAPH-API
- Facebook Post Images from local system on own Page
- How can I get posts from a facebook page using the graph API?
- Not getting all leads from Meta/Facebook using webhook for page leadgens
- Unsupported post request when trying to create a custom audience via the endpoint https://graph.facebook.com/lapi-version), (custom-audience-id/users)
- Page access token
- Facebook login via JS-SDK via OAuth will get stuck half-way
- Python - Facebook Check For Duplicate Post Before Posting
- Facebook Graph API - Story endpoint does not return all active stories
- Can't set permissions in Graph API Explorer tool
- My Authentication is not working in published mode
- Can I get my comment's reactions in FB Graph API Explorer
- Facebook GraphAPI: page subscribed_apps with subscribed_fields messages is not working
- Get Ad Account Billing Payment Transactions
- How to get a person’s username by his ID without a request to the graph?
- I am having trouble understanding the docs for Facebook Login SDK
Related Questions in FACEBOOK-GRAPH-API-V2.0
- Meta Ad Library API does not return any ad for specefic page
- How to get message from an ads with facebook graph api
- How do I grant a Facebook App permission to manage a Page, and get a permanent access token for it?
- Instagram Content Publishing - Unsupported post request. Object with ID ' does not exist
- Facebook marketing API - GraphInsecureException - The cipher AES128-GCM-SHA256 is not supported for TLSv1.2
- How to get facebook user information using nodejs (oauth)
- Trying to post image to Instagram from a Javascript using Instagram API
- How to share a custom post/video to Instagram from my XSLT web application?
- Using facebook conversions api in woocommerce php with cURL
- Creating ad for someone else's page using the Marketing API
- Authenticate the Test User { "error_type": "OAuthException", "code": 400, "error_message": "Invalid platform app" }
- To post on facebook page using javascript SDK with page access token
- How can I get Audience Interests from Instagram via API?
- Facebook Graph API not returning Gender
- iOS facebook graph batch request first request doesn't work
Related Questions in FACEBOOK-GRAPH-API-V2.1
- Liferay 7.0 Facebook Integration
- Facebook Graph API request groups access
- Get object comments with their author
- Facebook Graph API - Months of Missing Page Posts from /posts
- Using FacebookOmniauth in Rails 5
- fql is deprecated for versions v2.1 and higher
- Get recent photos from the Facebook v2.1+ graph api
- Find the count of the like on Graph Api
- Facebook Graph API - page_impressions inconsistent on set dateRange?
- How can I upload a photo to Facebook using Haskell?
- Updating Facebook Graph API to v2.0 or higher
- Is Graph API 2.x necessary to upgrade facebook php sdk from version 3.2.3 to 4.0.0
- Facebook API - getting a token that never expires
- Is it possible to limit publish_actions permissions to a single album?
- Facebook graph-api field expansion
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Use the mutual_friends API. How to use it is explained at https://developers.facebook.com/docs/graph-api/reference/v2.1/user.context/mutual_friends