Facebook error: "(#100) Tried accessing nonexisting field (user_friends) on node type (User)"

56,804

user_friends is the name of the permission you need to request from the user, before you can access their friends.

It is not the name of the endpoint that you request the data from – that is /me/friends, see https://developers.facebook.com/docs/graph-api/reference/user/friends

Share:
56,804
E-A
Author by

E-A

Updated on July 30, 2022

Comments

  • E-A
    E-A almost 2 years

    I'm using MVC4 and try to integrate facebook-login. I've check the facebook scope list and it appears I use it correctly. Except the error when I try to get user_friends

    Here is the url I try to get:

    https://graph.facebook.com/me?fields=user_friends,email&access_token=<mytoken>
    

    I get this error:

    "{\"error\":{\"message\":\"(#100) Tried accessing nonexisting field (user_friends) on node type (User)\",\"type\":\"OAuthException\",\"code\":100,\"fbtrace_id\":\"Ahhh3PoddnL\"}}"
    

    If you must know, my app is now Public, can get email and basic info (the permissions was asked and I approved)

    When I use as below everything is fine:

    https://graph.facebook.com/me?fields=email&access_token=<mytoken>
    
  • E-A
    E-A over 7 years
    Thank you. I certainly did not realized before! Thank you so much.
  • User558
    User558 almost 7 years
    It is possible to get friends list in iOS10?
  • Bhavin Thummar
    Bhavin Thummar over 3 years
    @all I have got the same type of error (#100) Tried accessing nonexisting field (likes) on node type (Post) for getting the likes. I have added user_likes permission for the likes.