In my database I have two different app_scoped_user_id for one facebook user.
How to compare two app_scoped_user_id and find dependency between them?
Is there some unique information for one user?
Related
Why on Facebook different applications return different result?
The answer is "App Scoped IDs", users have different (but unique) IDs in each App.
This may be interesting for you, if you want to identifiy users across different Apps: https://developers.facebook.com/docs/apps/for-business/
I understand that the same user will have different page-scoped IDs (PSIDs) across different pages. But is it guaranteed that no two users will have the same PSID across different pages?
For example, is it possible that user A has PSID 1234 while messaging page X, and user B has the same PSID 1234 when messaging page Y?
Technically user A and user B would be differentiable even if they have the same PSID because they are messaging different pages. But can I assume that there will be no overlap on PSIDs across all pages, so that I may use the PSID as a globally unique ID regardless of the particular page?
Facebook don't guarantee the page-scoped IDs (PSIDs) to be unique across different pages - a PSID may represent user A on page X, but user B on page Y.
When representing a user, these IDs are page-scoped IDs (PSID). This means that the IDs of users are unique for a given page.
https://developers.facebook.com/docs/messenger-platform/webhook-reference#format
Yes, Facebook PSID are globally unique as #Savegeman already mentioned.
Are Page Scoped IDs globally unique?
Yes, a PSID for a user on page will never be the same for a different user on a different page.
[Previous link was not valid anymore, adding new link here:]
https://developers.facebook.com/docs/pages/support#faq_267296560579051
I have 6 different applications on FB which have one database with users. All of them was created long time ago, on V1.0 and I have several hundred thousands registered users. People are buying daily tickets for those games, and tickets are valid for any of games. And that works just fine.
But since V2.0 for each application I'm getting different app_scoped user ID which are different to original ID in database, so I'm getting all of them as a new users every time they change the game so purchased ticket (which is app for registering) will not be available for user in any of app caused by totally different ID's... Note that many of them don't want to leave email, so email cannot be used as parameter for user identification.
I have read about finding original user ID with API V2.x calls, but still I'm unsuccessful. Any idea of getting real user ID with V2.x API calls?
Thanks in advance!
You canĀ“t get the real IDs in new Apps anymore, it would make the whole concept of App Scoped IDs void. But you can map the IDs of different Apps with the Business Mapping API: https://developers.facebook.com/docs/apps/for-business
Since Facebook make different ids for same user in different apps in API V2.0, we should change our attaching systems to fit this.
For the reason that I wanna make less change on our system, I need to know whether the Facebook app-scoped id global unique, in another word, there were have two apps, will the ids conflict when I save only the user app-scoped id in a same hash?
More details following.
I have two apps in a business, so each app could get the app-scoped id for another. I already have a system storing user's information unique index by the user app-scoped id of First app. Now I need to save these two apps user data in the same MySQL table, and we use the ids_for_business API to confirm whether the same user has registered in another app, to decide make a new register or login as a new user of our system. If the app-scoped id is globally unique, we could just act as what I am saying. But if the app-scoped id will be same for different user, that our user system will identify different user as a same user in our system, so we have to make a big change to follow Facebook.
Help me please...
Example like this, id of UserA on AppC is 33, would the id of UserB on AppD be 33?
Yes, The IDs are globally unique:
The ID you get for a specific user who has logged into your app / granted you permission will not change,
Two apps never get the same ID to reference different users - an app scoped ID is globally unique and references a specific {app, user} pair
I want to get a list of all users (even if they are my friends or not) who are using my facebook application. Is this possible? If so, how?
And another quick question if we're still here :) Assue I have a facebook id of a person, can I retrieve his name by using it?
I don't believe that you can get a list of all the Facebook IDs of users of a particular application. There doesn't appear to be a possible query for this based on an examination of the FQL tables, probably due to performance and privacy reasons. Generally the presumption is that you maintain a local list of users in your own application, and correlate them to Facebook via their ID, so you would already have all these IDs.
To answer your second question though, yes, that is definitely possible. The Facebook API provides both the users.getStandardInfo and the users.getInfo methods, both of which take user Ids and return information about the user, including the name. users.getInfo can even be used without a session key to just get the name of the user.