'How to get all Facebook check-ins for a specific page?

I've a Facebook-Page which is also a place in FB, so users can check-in to that place (for example with an iPhone). Now I want to get all the checked-in users from my page. But I always get an empty array, even when several users are checked-in. I'm using the following URI from the Graph-API:

https://graph.facebook.com/PAGE_ID/checkins?access_token=ACCESS_TOKEN

For the access-token I've created an FB-app and assigned the permissions manage_pages, offline_access, user_checkins and friends_checkins.

What am I missing?



Solution 1:[1]

You will need to use the page access token (see Page Login on https://developers.facebook.com/docs/authentication/).

You can get the page access token by querying me/accounts using the user access token.

In that list of accounts returned will be the page access token.

You can play around with it here: http://developers.facebook.com/tools/explorer

Solution 2:[2]

You are doing it correctly. I was having a similar problem, and found this bug report a few months back. It is now fixed.

http://developers.facebook.com/bugs/165533086912181

Since this has been fixed, it should work for you now. If not, you may want to try FQL. You can access it through the graph API by accessing

https://graph.facebook.com/fql?q=SELECT+checkins+FROM+pages+WHERE+page_id=WHATEVER.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 DMCS
Solution 2 cclark