Facebook - Do not receive the full list of friends with the latest changes (the user ID in the application may be specified)

The current code I'm working on, for some reason, when I do

https://graph.facebook.com/me?access_token=access_token (accesstoken from callback response) 

It returns id: some number that is not my real facebook user id. It also gives a link like:

 https://www.facebook.com/app_scoped_user_id/<number> 

If I use the access token from the facebook access token tool, it returns my actual user ID.

In addition, I remember that the old applications that I worked on, they return only the actual user ID, and not what happens here.

Regarding friends:

Using the access token from the access token tool, I get a complete list of friends. But with the help of a token from the application, I get only one friend (I added recently). It doesn’t work out what happened.

+6
source share
3 answers

As of 4/30/2014, applications can only receive a list of friends, also using the application, and you must request permission from user_friends. In addition, users who have never logged into your application until 04/30/2014 will receive app_scoped_id instead of their real facebook id.

+5
source

I tested pretty well what was available, and not how I understood the changes last night. Even if you get your user friends, you can no longer get useful user information. You will not be able to access your friends' albums and photos, so accessing friends that can be found is not necessary, because your application can no longer "act as a user". You should also notice that some of the FQL tables have left v2.0, namely location_posts (and I also make patches). Some fields are also muffled, for example, mutual_other_component. You will need to check everything to be sure of what has been changed, since many of the differences are not documented.

If you already have applications running in version 1.0, imagine that v1.0 will be completely deprecated in April 2015.

While I understand that FB wants to remove the whole impersonation to protect user privacy, he decided to achieve this by completely disabling the reason that many application developers prefer to integrate with Facebook because they can use facebook data in their applications, users will be interested. For third-party applications, this is nothing more than just a free OAuth service for me, because the social aspect, in fact, is now gone, as far as I can tell.

I would like knowledgeable parties to obscure some light on what else is “social” in FB integration now that v2.0? I am in an early stage of development, and now I think that I will probably completely abandon FB, but just in case there is something out there that I do not know about.

+13
source

Fosco and CBroe are true. You can only get friends who have already used the app. It is mentioned in the document Update from v1.0 to v2.0 of the Graph API. It happened on April 30th.

/me/friends returns friends of users who also use your application

In version 2.0, the friends API endpoint returns a list of friends who also use your application. In version 1.0, the answer included all friends.

There are two key uses for applications that are necessary to access friends who are not related to the application: tagging and invitation. In version 2.0, we added the Taggable Friends API and the Invite Friends API to support these streams ..

After a person is logged in with v2.0 login to Facebook, a call to / v 1.0 / me / friends and / v2.0 / me / friends` will lead to v2.0 behavior - both calls will return a set of person’s friends, who also use the app.

So this means that if you need a complete list, you are left with only the Taggable and Invitable . Unfortunately, Invitable is only for FB Canvas games, and Taggable needs to be watched by FB before you can test it, which can take 1-2 weeks, and you need to provide information about your application and justification why you need such functions . Even if you manage to access the Taggable API, you can only get the name and pic. User.

FB destroyed everything. Developers (like me) who relied on such key features are destroyed. Could there be (another) sign that no one should rely on FB? I would like to hear some thoughts about this.

+7
source

All Articles