I try to extract the 'feed_targeting' field for a created post using Facebook Graph API, but this information is missing when I try to get details of the post. I'm using the API v2.2 and according to the Facebook documentation this information should be there:
https://developers.facebook.com/docs/graph-api/reference/v2.2/post?locale=en_GB.
First of all I created a post on my page and targeted it to a group of people.
Then I generated the Access Code with all permissions and used the Facebook Graph API Explorer to extract the post details.
Facebook correctly retrieves the post details but the information about targeting is missing in the response.
Let me know if I could give you any more information.
I'd appreciate if anybody could point me towards the right direction.
Related
I’m looking for a solution to get the ad post id, in the page post, when I create an ad creative from the graph api.
I simply cannot get it through the graph api, because it’s linked to the business manager.
Any ideas, how I can get the id from the graph api - or how I can create a page post with the specifications from the ad creative.
I’ve tried almost everything, and I’m just stuck.
I can create the page post manually by copying the id and paste it into the api. But I can’t fetch it from their graph api.. or am I just missing something?
I tried getting data using Graph API Explorer code below:
GET request:
page_id/tagged
But I'm getting only few posts. I created 2 new posts from 2 different users and tagged my page. I get mentioned notifications in my page, but it doesn't reflect in graph API.
Is there any other way to track page mentions or Am I doing it the wrong way? Also, I need the user id of the user who has tagged my page.
Could anyone point me in the right direction? I'm confused.
I was using user access token. I used Page access token, now I'm getting the data.
I am using /{page-id}/feed endpoint of Facebook Graph API to get the feed from a particular page.
There in the response a post from an user to the page is missing, though from facebook portal I am able to see that post on that page. As that post is visible there I can assume that is public.
Another post from the same user on a different page is also not coming in response.
Any idea on why the post is not getting returned ? also I need details about what kind of data is not supported by facebook page feed API.
Your answer will be really appreciated.
Im trying to use the Facebook graph api on rails to find for a specific post who shared it. Looking through the documentation and the api data it doesn't seem that this information is available for a specific post. I am able to get the likes and comments information, however not the shares.
Would anyone know whether the current Facebook Api gives that information? Thanks
Using Graph API, do a request to graph.facebook.com/POST_ID?fields=sharedposts.
Iterate through the resulting array to get the sharers' identity.
Example in Python here.
We have a Facebook Application with custom Open Graph objects and actions.
We then use a App Access Token to post stories for a particular user from our backend with the normal Open Graph REST API. After the post-call succeeds we log the returned "id" of that post.
Now we would like to collect insight data (e.g. post_impressions_unique) for some of these individual posts/stories using the logged id's.
According to https://developers.facebook.com/blog/post/573/ we should be able to do something like:
https://graph.facebook.com/[POST ID]/insights
Even though this call seems to work using our normal App Access Token, no insight data is returned for the post/story.
Does anyone know if this is possible and how to do it?
We have been experimenting with a normal User Access Token and the "read_insights" permissions, but with no luck. I have read some similar questions but mainly regarding page-posts (this is an App Open Graph post/story).
EDIT:
The facebook article above only refers to "Page" posts. I'm looking for analytics on individual Facebook App Opengraph Posts/stories. It seems difficult to find any good information about this, has nobody attempted this with any success?
You must add insights into a permissions/Extended permissions
Article :
Getting Page Insights
In order to obtain Page Insights via the Graph API, you must use a Page access token, and you must have the read_insights permission. Click on the link below to see this working in the Graph API Explorer.