stuartchaney
stuartchaney

Reputation: 432

Facebook API checkins not working?

Wondering if anybody has had any problems using the facebook graph api to get checkins.

https://graph.facebook.com/me/checkins?access_token=2227470867|2.SOgfV3_Dc6iX_IzJctERXA__.3600.1292436000-666790342|UPcbXaafo7G5rd2I_7d9_LpeZFo

returns

 {
   "data": [

   ]
}

and any other ids insted of "me" return the same.

Anyone have any ideas?

Upvotes: 1

Views: 1230

Answers (2)

Yilmaz Guleryuz
Yilmaz Guleryuz

Reputation: 9745

Allright fellows,

after some tries I can shed a light to this topic, here comes the description of the solution.

You can make such requests only by authorized apps.

I implemented the flow on Android and works like a charm,

here is an example call grabbed from logs:

https://graph.facebook.com/me/checkins?format=json&sdk=android&access_token=<access_token>

important note: access token MUST have been retrieved by your application, which has permissions for

"user_checkins", "friends_checkins"

getting access token is straight forward flow, explained well in all SDKs (p.s. I'm using Facebook-AndroidSDK)

Upvotes: 1

stuartchaney
stuartchaney

Reputation: 432

Turns out you can't access the fb places api outside the US

Upvotes: 1

Related Questions