Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

facebook id string length

Tags:

ios

facebook

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

like image 396
Andrew Avatar asked Dec 02 '12 01:12

Andrew


People also ask

How do I get my Facebook API user ID?

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.

How do I find Facebook user data?

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.

Is the Facebook API free?

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.

What is Fbtrace_id?

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.


1 Answers

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.

like image 188
Michael Mior Avatar answered Oct 30 '22 21:10

Michael Mior