I have an app and I'm getting Facebook uid of app users with this snippet:
FB.login(function(response) {
if (response.authResponse) {
FB.getLoginStatus(function(response) {
if (response.status === 'connected') {
var uid = response.authResponse.userID;
There's a bug in the app and some of the uid have not been stored on the database. I need to retrieve them starting from the facebook profile url (I have that).
As explained here I tried to get their ID using the graph data, but this profile ID is different from the uid.
I tried with my profile and I get two different IDs, one from the graph (shorter, 10 digits) and one from the app (longer, around 15 digits)
I double checked putting the uid I get from the app as a parameter in a URL, in this way: facebook.com?profile?uid=XXXXXXXXXX but I don't get my profile.
So, are uids and profile ids different things? How can I get the uid, having both the profile id and the profile URL?