I don't know why I've got the different between the id
from Facebook url and ProviderKey
in the controller.
Here is my profile url: https://www.facebook.com/profile.php?id=100008491477935. So, my id is 100008491477935
But, when I use that account to login, the ProviderKey
is not the same:
var loginInfo = await AuthenticationManager.GetExternalLoginInfoAsync();
loginInfo.Login.LoginProvider
is 1488586148101087
I can get the picture from this url: https://graph.facebook.com/1488586148101087/picture
But, I've got error message Profile Unavailable when trying to go to https://www.facebook.com/profile.php?id=1488586148101087
The id
is not correct (different from ProviderKey
).
I wanna get user profile url by using ProviderKey
like the id
. Is there a way to do that?
Thank you!