- Home /
Facebook SDK - Get User ID
Hi
I am working with the Facebook SDK for Unity.
I am trying to get the user id of the Facebook user logged in. I log in and I get an id, but when checking it with this site, the numbers differ. The numbers on that site are a lot shorter vs what is retrieved from the Facebook SDK:
Any ideas why?
I know this site id works, because when entering it here it goes to my profile: https://www.facebook.com/profile.php?id=xxxxxxx
Thanks, Chris
Answer by zzzzzz789 · Sep 26, 2015 at 09:57 AM
In v2.0 of the Facebook API user ID's from new logins have been changed to App Scoped ID's. This means a Facebook user's ID will be different on each application they log into.
See more here: https://developers.facebook.com/docs/apps/faq#scoped_ids
Your answer

Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Facebook leaderboard issue 0 Answers
Getting multiple photos at once but in the correct order with Facebook SDK 1 Answer
Platform Dependant Asset Exclusion 1 Answer