Getting user checkin information based on place_id from Facebook - facebook-graph-api

I was wondering if there is any way to get user checkin information for different places based on the place_id. Facebook documentation keeps changing around and I'm not sure if this is possible now? Seems like it was possible in older API versions.
Any help will be greatly appreciated.Thanks

Checkins are deprecated since Graph API v2.0. You can get the total count (field were_here_count) of checkins to a place with a call like
GET /BrandenburgerTorBerlin?fields=id,name,were_here_count
which gives the result
{
"id": "145183205532558",
"name": "Brandenburger Tor",
"were_here_count": 128511
}

Related

how to get likes counts from a Facebook page using Graph Explorer 2.4

While this question has been asked a lot, I've still haven't find a way to do it.
I'm passing this to Graph Api Explorer
40796308305/?fields=feed{full_picture,created_time,message,likes}
this gives me the, Picture to every status, created time , message - user status and likes which gives me array of data and users that likes the status.
i'm trying to get count of those users and remember there were a field 'summary' but I don't see it in the JSON Results.
Am I missing something with 2.4 api version ?
any help will be appreciate.
You need to request the summary:
/40796308305/?fields=feed{full_picture,created_time,message,likes.summary(1)}
And if you are only interested in the total count, but not the individual users that liked, you might want to set the limit for likes to 0, so as not to request unnecessary data:
/40796308305/?fields=feed{full_picture,created_time,message,likes.limit(0).summary(1)}

Getting the facebook graph to only return results with a # symbol in it

Any one have any ideas on how to accomplish this?
I have tried
https://graph.facebook.com/search?q=%22%23apple%22
https://graph.facebook.com/search?q=%23apple
https://graph.facebook.com/search?q#apple
which does not work.
To be clear the results should only have posts that contain #apple not "apple".
Facebook says this is not supported at this time: https://developers.facebook.com/x/bugs/313941462054417/
if you're trying to get the #hashtags from Facebook, currently, there is no api for this. and even if there were- the posts are not intermediate, they are being cached. you won't see the most recent hashtag from a person who's not in your friendlist right away, this will take a long time to appear in the hashtag search
I've read too that it's not supported but,
trying the second line of jlarry
https://graph.facebook.com/search?q=%23apple
in Graph API Explorer, it works.
obviously the query is on the posts set as public.
so the query could be something like this
https://graph.facebook.com/search?q=%23joviberton‬&type=post
for further ops check https://developers.facebook.com/docs/graph-api/using-graph-api/

facebook graph api returning different response to the same request

I came across to what I think is a weird behavior of the graph api..
From the facebook reference page https://developers.facebook.com/docs/reference/api/
, I tried the newsfeed method https://graph.facebook.com/me/home?access_token=...
and get the following json response:
{
"data": [
]
}
but than clicking on refresh button I get a feed:
and this is happening randomly at every refresh.. some of them with data in response some of them empty..
Looks like fb servers are out of sync.. and it depends which one you hit..
is this happened to someone else?
thanks.
I looked here: https://developers.facebook.com/live_status and it appears there is some issues but not anything related to what you're saying. I remember there was another question over the weekend from someone saying they were getting back different results from the same query, but I cannot remember what it is. #John, it sounds like the issue is reproducible, so you should file a bug report: https://developers.facebook.com/bugs

Facebook Graph API Filters - What options are available?

It seems that you can make a call to the Graph API that looks like this:
https://graph.facebook.com/me/checkins?since=yesterday
Apparently you can pass either a UNIX timestamp or any valid strtotime value.
The questions...how do you know what other options are available to you in the request? I don't see any documentation about this "since" filter or any other similar filter. Is this information just trickling down from people who know some API engineers at Facebook?
I know that there are some things that you can do in FQL that are similar to what I was describing but I want to stay with the Graph API if I can.
Thanks
--Tony
Anothony Lee:
since, until - (a unix timestamp or any date accepted by strtotime):
EG: since=yesterday until=now, since=6+months+ago until=3+months+ago,
since=10/01/2011 until=10/11/2011
another example
&since=noon+monday+last+week &until=10+minutes+ago.
you need to provide the date filter as shown in the below link. time_range should be attached to the insights.
try this
https://graph.facebook.com/v6.0/me?fields=id%2Cname%2Cadaccounts%7Bcampaigns%7Badsets%7Bads%7Binsights.time_range(%7B'since'%3A'2020-05-01'%2C'until'%3A'2020-05-01'%7D)%7Badset_id%2Ccampaign_id%2Cad_id%2Cclicks%7D%7D%7D%7D%7D&access_token=

Community Page Graph Picture Requires User Access Token?

Starting last month, it appears that community pages either require a user access token to access the graph image, or will not allow application to access the image.
As an example: The community page for Harold and Maude (105636526135846), last month would return a picture -- now calls to the graph do not include the picture string.
{
"id": "105636526135846",
"name": "Harold and Maude",
"link": "http://www.facebook.com/pages/Harold-and-Maude/105636526135846",
"likes": 143886,
"category": "Movie",
"is_community_page": true,
...
At one point it appeared that using an access token would work, however, now requesting '/105636526135846/picture' returns no picture and Facebook's embedded image is
http://external.ak.fbcdn.net/safe_image.php?d=AQBKNDbD3RCI0MXv&w=180&h=540&url=http%3A%2F%2Fupload.wikimedia.org%2Fwikipedia%2Fen%2Fc%2Fc4%2FHarold_and_maude.jpg&fallback=hub_movie
Alternatively FQL appears to return the proper information
>[
>> {
>>> "pic": "http://external.ak.fbcdn.net/safe_image.php?d=AQA4PX9DD7wlHZmC&w=100&h=300&url=http%3A%2F%2Fupload.wikimedia.org%2Fwikipedia%2Fen%2Fc%2Fc4%2FHarold_and_maude.jpg&fallback=hub_movie",<br />
>>> "pic_large": "http://external.ak.fbcdn.net/safe_image.php?d=AQBKNDbD3RCI0MXv&w=180&h=540&url=http%3A%2F%2Fupload.wikimedia.org%2Fwikipedia%2Fen%2Fc%2Fc4%2FHarold_and_maude.jpg&fallback=hub_movie"<br />
>> }<br />
>]
Is there something I'm missing with the graph? I'm concerned that the FQL method may stop working.
Wikipedia have started blocking certain images, based on their licensing. So Facebook runs it through a filter (safe_image.php) to check if it is allowed or not. If not, you get a default image. So using FQL will 'sometimes' return you a usable image, but the graph no longer will.
I have no idea if Facebook plan to continue offering the FQL call. Sorry!