Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get facebook user checkins

I need to get a list of a facebook user checkins both in photos and in status.

I tried to use graph api to query /me/locations' like:

$this->api->api('/me/locations?limit=1000'); 

It returns me a list of user checkins with three different types: photo, checkin or status.

My problem is that I need to get the photos that have user checkins but I can't seem to find it.

Can anyone help?

Thanks

like image 545
jribeiro Avatar asked Nov 08 '12 05:11

jribeiro


1 Answers

If you look at the User documentation, under the title feeds, it lists a method of fetching only the posts which have a location (Checkin) in it.

https://graph.facebook.com/me/feed?with=location

As for getting Photos with a location (Checkin), there doesn't seem to be any documentation that suggests that the Photos can be filtered similar to the way Posts can be filtered. At best, I guess you will have to fetch all photos and then filter out the ones that do not have the place tag. Posts use the location tag while Photos use the place tag.

like image 75
Siddharth Lele Avatar answered Oct 18 '22 03:10

Siddharth Lele