I had a look on the facebook graph api. facebook api user object
I can't see what the maximum length that id would be. So that I can store it my database to uniquely identify a user on my game without them needing to register or sign up.
Also is an id unique for each facebook user? - Must be.
id is pulled from JSON "https://graph.facebook.com/me?fields=id&access_token=fromiPhoneApp
The simplest way to get a copy of the User Profile object is to access the /me endpoint: FB. api('/me', function(response) { }); This will this will return the users name and an ID by default.
You can get user data by using the Facebook Graph API if the user has given their permission to share their data and your app has the appropriate permissions to receive this data. This topic shows you how to make a single request for data and how to have a batch of requests in a single request.
In the newest version of the Graph API (v2. 9), we're announcing features that simplify development, making it even easier to build apps and experiences with Facebook. We're providing free access to over 140 million places around the world, the same data that powers Facebook, Instagram, and Messenger.
fbtrace_id : Internal support identifier. When reporting a bug related to a Graph API call, include the fbtrace_id to help us find log data for debugging.
A 64-bit integer is sufficient. Or if you prefer to use a character field, 20 characters. Yes, the ID is unique for each user.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With