I have App on Facebook, and this code using FB JS-SDK:
FB.login(function(response) {
if (response.authResponse) {
FB.api('/me', {fields: 'first_name, last_name, email'}, function(response) {
var user_id = response.id;
...
});
}
}, {scope: 'public_profile,email'});
The user_id
returns only user ID that belongs to my APP. But how can I retrieve the real Facebook user ID from this ID?
I need to show profile using this URL: https://www.facebook.com/profile.php?id=XXXX.