Trying to get my head around it but getting the same error. I have created 3 test users(user1,user2,user3) and each have added each other as friends.
Now I want to test the facebook API for all mutual friends by sending the below data :-
https://graph.facebook.com/v2.8/[user2_userID]/all_mutual_friends?access_token=[User1_access_token]&appsecret_proof=[app_secret_proof_created_by_hashing_token_and_app_secret]
This is to get the mutual friends between user1 and user2 but I get the below error :-
{
"error": {
"message": "(#100) Tried accessing nonexisting field (all_mutual_friends) on node type (User)",
"type": "OAuthException",
"code": 100,
"fbtrace_id": "AlCoK/9o/6h"
}
}
I even tried with actual users thinking the test users might have some issues but I get the same error. Can someone tell me what exactly wrong am I doing here? The document says the same. https://developers.facebook.com/docs/graph-api/reference/user-context/all_mutual_friends
Thanks in advance.
for mutual_friends
{user-id}?fields=context.fields(mutual_friends)
for all_mutual_friends
{user-id}?fields=context.fields(all_mutual_friends.limit(100))
Permissions