Is there a difference between Facebook profile id and uid?

I have an application and I get Facebook from users of the application using this snippet:

    FB.login(function(response) {
        if (response.authResponse) {
            FB.getLoginStatus(function(response) {
              if (response.status === 'connected') {

                var uid = response.authResponse.userID;

There is an error in the application, and some of the uid were not saved in the database. I need to get them starting with the facebook profile URL (I have).

As explained here , I tried to get their identifier using the graph data, but this profile identifier is different from uid.

I tried with my profile, and I have two different identifiers: one from the graph (in short, 10 digits) and one from the application (longer, about 15 digits)

I double-checked the placement of the uid that I get from the application as a parameter in the URL, this way: facebook.com?profile?uid=XXXXXXXXXX, but I do not get my profile.

, uids ? uid, , URL ?

+4
1

30 2014 Facebook 2.0 API Facebook. , , , "app-scoped". App-scoped , "" / ID. , .

, ( ID, ) . . URL- ID .

https://developers.facebook.com/docs/games/migrate#appscope

+9

Source: https://habr.com/ru/post/1542674/


All Articles