Facebook API get recent checkins to location/page - facebook

I want to know who checked in my bar in the last few hours,
is there a way to get a list of recent check ins to my facebook page (or location) ? get the list of images / posts / user ids ?
https://developers.facebook.com/docs/graph-api/reference/page
only checkins count

I donĀ“t think its possible to get a list of checkins, for privacy reasons. Even the user_checkins permission got removed: https://developers.facebook.com/docs/apps/changelog#v2_0_permissions

Related

Facebook Graph API - Get only the recent checkins of a page/place

Is there any way to get only the number of checkins that occurred recently to a Facebook page/place ?
I know I'm able to get the checkins using something like this:
GET \ "https://graph.facebook.com/v2.9/{{page-id}}?fields=checkins&access_token=..."
But it seems to return all the checkins of the page since it was created. Can I get only the recent checkins somehow ?
Thanks.

FB Graph API: Get group wall posts with time posted and number of likes?

It is a closed group (I am a member and have access to these posts) and so I am using v2.3 as user_group permission was deprecated in newer versions. I only want the past 100 wall posts on this group with only two data entries: time posted and number of likes. This is what I tried-
API explorer-
1121167991289664/feed?limit=100&summary=true
but this gives me neither past 100 posts (only recent ones with paging parameters) and neither like count.
Here's the output: http://pastebin.com/Pzefh6Ps
This works fine:
group-id/feed?fields=message,created_time,likes.limit(0).summary(true)&limit=100
Of course you get the recent entries. If you want to get older ones, check out the paging options in the docs: https://developers.facebook.com/docs/graph-api/using-graph-api/#paging
Well, it seems like it's not possible to get CLOSED groups' posts via Facebook API anymore. At least not if you're not personally an admin in them.

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
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.

Get Facebook Page Feed and their likes/comments without any permissions

I am trying to get the user ids of all the users who have liked or commented on a status on a facebook page.
I tried using graph.facebook.com/page_id/posts?access_token=...
but it only gives me 2-4 user ids who have liked and their total count, similarly for comments. Is there any way to get all the ids?
According to The Documentation for the 'Post' object
(and verified by me on my own page using the Graph API Explorer tool), these work:
/POST_ID/comments to fetch the comments
/POST_ID/likesto fetch the Likes

Can I search for how many checkins in a place with Facebook graph API?

I have read through graph API document, and tried the following queries:
curl https://graph.facebook.com/search\?type\=checkin\&place.name\=Dante+Coffee\&access_token\=...
The access_token is valid. But it shows nothing like this:
{"data":[]}
I guess I only have the permission to access checkins sent from the owner of this access_token. And since I have never checkin this place, I got zero data from this query. But is it possible to get the total number of checkins with a place name by Facebook Graph API?
Although the FB docs say that Checkins are searchable, /search?q=woolwich&type=checkin gives me an error (#615) The checkin table does not support search..
But Places are searchable and the Place object has a checkins field (see /205142516170657?fields=checkins) - this should give you what you want.