Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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>
like image 997
E-A Avatar asked Sep 01 '16 08:09

E-A


People also ask

Is there any problem with Facebook now?

Facebook is having issues since 12:10 AM IST.

Why is Facebook feed not loading?

Facebook feed is not loading due to a lot of reasons, for instance, slow internet speeds, connected to VPN, wrong date and time settings, using backdated Facebook version, or Facebook bugs, etc. There might be some browser cache and cookies or browser extensions that might create the issue.


1 Answers

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

like image 129
CBroe Avatar answered Sep 19 '22 08:09

CBroe