What is the length of facebookId when using Graph API? - facebook-graph-api

I'm migrating my iOS app from FQL to Graph API. My backend has a 32 bit numeric for facebook id. It worked perfectly, but now, when using Graph API I realized the facebook id is larger (because it's changed by a temporal facebookid), and I see an overflow in my data base, (exactly 2^32/2-1 but it doesn't matter).
Reading facebook docs I don't see how long can be the new facebook id.
Do you know it? Thanks.

Facebook employees in the official developers group on Facebook suggest using VARCHAR(255) to be safe.

According to the Facebook docs, you should treat the id field as a string:
https://developers.facebook.com/docs/graph-api/reference/v2.2/user#fields

Related

Is it possible to get Facebook checkins of a user using an Facebook app?

I am trying to build a an app that gets user's Facebook checkins. Is it still possible to get checkin data from Facebook API. I did some research and learned it might not be possible anymore.
You can use the following endpoint: /me/tagged_places. You will need the user_tagged_places permission.
Check out the documentation here.

Get the Date on which a particular page was liked by me using Facebook Graph API

Is there any way using FB Graph API by which I can find the date on which the particular page was liked by me?
Thanks
No, there is not.
The date/timestamp of when a “like” happened is not available via the API.

Corona SDK Facebook returns app_scoped_id and not my normal user_id

If I have understood it correctly Facebook made some changes so it returns app_scoped_id instead of the normal user_id.
The problem I have now is that no other function seems to work.
I receive an I id from Facebook, and it's the same each time I login, but if I use facebook.request("me/friends") the table is empty, if I use facebook.showDialog("friends") it
What do I need to do in Corona SDK to get this to work? Before I could use these functions after having setup them up in Facebook.
I read this thread explaining why this happen but it doesn't explain how to solve it in Corona SDK: Get Users App-Scoped user id in Facebook Graph API
As of Facebook API v2.0, friends list (/me/friend) returns ONLY user's friends who are already using your application. This limitation applies to all apps that are on v1.0 mode too.
If you're looking to get friends for tagging actions: https://developers.facebook.com/docs/graph-api/reference/v2.0/user/taggable_friends
If you're looking to get friends for inviting to a Facebook Game on Canvas: https://developers.facebook.com/docs/graph-api/reference/v2.0/user/invitable_friends
Cheers!

How do I get the list of facebook apps a user is an admin of using the Facebook Graph API?

Am using the Facebook Ads API to run ads. For running Mobile App Ads, I need to retrieve the apps which the logged in User is an admin of. I couldn't figure out from the documentation as to how to get this list of apps. Some stack overflow threads (How to get if a user is admin of a page (isAdmin) using the Facebook Graph API?) suggest requesting /me/accounts , but the just returns a list of facebook pages the user is an admin of. Could someone suggest some documentation in this direction?
The Graph API call /me/applications/developer returns all applications of which the user is an admin.
Read more here: https://developers.facebook.com/docs/graph-api/reference/v2.0/user/applications/developer
Doesn’t seem to be possible with the current API v2.0 – but it is with FQL, using the app_role table:
SELECT application_id FROM app_role
WHERE developer_id = me() AND role = 'administrators'
Test it in Graph API Explorer
(And yes, FQL is deprecated, but it will still be around for at least two years. And before they completely shut it off, they will implement query-like features in a future API version according to what I’ve heard from FB employees.)

Facebook APIs: Anyway to see when a page was created?

Has Facebook ever provided a way to ascertain when a page was created either through the Graph API, the Legacy API, or FQL? I can't seem to find it.
No, the creation date of a page isn't exposed anywhere in the API
According to this offical resource :
https://developers.facebook.com/docs/reference/fql/page
There is no any column that mention about the time when page is created.