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
I am looking to get the latest comments for the Facebook page which I have created, I can fetch it using FQL, but now I don't want to use FQL Because it'll be Deprecated after few months, so I need to Do it through Open Graph API,
Can anybody help me out here?
Help will be appreciated.
https://developers.facebook.com/docs/graph-api/reference/v2.2/page/feed
/{page-id}/tagged shows the posts that this page was tagged in and the 'posts to page'
...if you mean the user posts. If you want to get the latest comments to page posts, you need to get the latest posts with /page-id/feed first and use the /post-id/comments endpoint for each one. Or easier: /page-id/feed?fields=comments
If you need older entries, you need to use paging: https://developers.facebook.com/docs/graph-api/using-graph-api/v2.2#paging
I'm trying to migrate from FQL to Graph api and I'm running into some issues while trying to fetch unpublished posts from a page as they're not showing up.
This is the FQL:
select description,actor_id,app_data,app_id,attachment,comment_info, created_time,feed_targeting,likes,message,permalink,post_id,privacy,share_count,source_id,targeting,type,updated_time,is_published,scheduled_publish_time
from stream where source_id="{page-id}" and (is_published=0 or is_published=1)
ORDER BY created_time
DESC LIMIT 250
And this is what I have now:
{page-id}/feed?fields=id,is_published,scheduled_publish_time,from,description,message,picture,link,name,caption,icon,privacy,type,status_type,object_id,created_time,updated_time,feed_targeting,shares,likes.limit(1),comments.limit(1),attachments&limit=250
The result set from FQL return several post for which is_published = false, while none of them show up with the api call. Obviously, I'm using the same access token for both. I've tried adding some more fields, removing some fields, making the call only for the promotable posts, but no luck. Am I missing something?
EDITED
There's a bug reported on Facebook regarding this in case anyone wants to subscribe:
https://developers.facebook.com/bugs/277633459027605/
It has been confirmed that this is a bug.
https://developers.facebook.com/bugs/277633459027605/
I'm trying the below Facebook API to getting my friends' check-in around a specified location.
https://graph.facebook.com/search?type=checkin¢er=xx,xx&since=XX-XX-XX
Here I have a question, that is how long my friends' check-in I can got - seemed that since parameter can't support too long check-in, e.g. today is 2012-07-04, one of my friends made a check-in on 2012-06-02, but even I set the parameter of since looks like this: since=2012-06-01, there are no any data I can got, could you explain me why? thanks!
This query returns the last 20 checkins by default and can return a maximum of 500 checkins.
See the facebook checkins reference for more detail:
https://developers.facebook.com/docs/reference/fql/checkin/
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.