We have a query to the Graph that was working very good until today.
https://graph.facebook.com/NNN/photos?fields=position,link,images
Now Facebook Graph is not sending the position (neither the link). Why?
Was there a change in the photos object or the fields or something?
Thanks.
OK... The problem is that now this query needs to include the Access Token.
Old query:
https://graph.facebook.com/NNN/photos?fields=id,link,position
New Query:
https://graph.facebook.com/NNN/photos?fields=id,link,position&access_token=ACCESS_TOKEN
Related
I would like to integrate Facebook page's feeds to my website.
I'm trying to use the Graph API, everything works fine, but I cannot get the attached pictures (picture field).
/v2.6/{page_id}/feed
But I only get the id, created_time and message fields.
Can someone helps me with this ?
I probably miss something but I cannot found what.
Thanks by advance.
/v2.6/{page_id}/feed?fields=message,picture,...
You don´t get the additional fields if you don´t ask for them.
Existing fields: https://developers.facebook.com/docs/graph-api/reference/v2.6/post
Based on Facebook documentation:
https://developers.facebook.com/docs/graph-api/reference/v2.3/user/feed
the filter modifier should retrieve only posts that match a particular stream filter.
So trying on the Graph API Explorer the following query:
me/feed?filter=app_2305272732
should only get me photo posts and not all posts like I'm getting back.
Has anyone any better luck with stream filters? Is this a facebook bug?
thanks.
Yes this a Facebook Bug and as of today it is not fixed. Below is the link to this bug, you can subscribe it to track its status. Bug
I am getting Facebook posts and their comments from the facebook graph API (I cannot use FQL). I am able to save the posts and their comments successfully into my database. However, I am not able to get the new comments where are there on the post which I dont have in my tables. I tried
postid/comments?time=2014-04-13T00:00:00+0000
postid/comments?since=2014-04-13T00:00:00+0000
postid/comments?since_id=001122334455
but it is still not giving me records after that date. I also referred this post but it does not has a solution.
If you convert your time to a unix time stamp, then it should work.
For instance, the Unix timestamp for the time above is 1428935421
postid/comments?since=1428935421
http://www.onlineconversion.com/unix_time.htm
I'm looking into the facebook graph api. I understand that I can retrieve information about a facebook web page by making a get with the current id. It's also clear that after retrieving a access token I can post on the logged in users wall and do other operations.
But what if I want more general data? Can I, for example, get how many swedish user who have used the word "Obama" in their status update the last week?
I don't think that the current search API can be that specific. You can find everything about the search API in this document.
I'm trying to get some insights on a list of Posts by a Page on Facebook.
To be specific, I want to get the information highlighted in this blog post via the API.
But I can't figure out how, anyone knows how?
As far as I know it's only possible using the "stream" table. So you've got to use FQL to query this data. Using this technique you'll only get the impressions directly. Feedback rate can be calculated by adding #comments and #likes and dividing the result by #impressions. Hope they'll add this to the insights graph api as well.
MartinHN
Refer to https://developers.facebook.com/docs/reference/api/#analytics
If you are trying to aggregate multiple pages or a page other than the requesting app then you may need grant read_insights permissions to your application.
Refer to http://developers.facebook.com/docs/reference/api/insights/