Is there a metric that I can pull from the Facebook Graph API that would tell me either/both Response Rate and/or Average Response Time from a page?
I'll attach a screenshot as to what I'm referring to:
I'm seeing this when I go to Settings -> Insights -> Messages, but would love to know how to pull this information from Facebook.
Anyone know the specific metrics or queries I could use to obtain this information?
EDIT: For anyone who offers the displayed_message_response_time, this doesn't work because it is set by the user AND returns a string (not numeric value).
Afaik there is only one way to get the reaction time:
Use /page-id/feed?fields=id,from to get all posts with the info who created them
Filter out the user posts with the "from" field
Get the time between the user post and a page answer (if there is one) post by post
Calculate the average response time based on the resulting times
I believe Fanpage Karma does it that way.
Related
I am working on facebook api. I can get total impression and clicks etc. data from facebook campaigns stats report. But my requirement is to get each impression in individual line. For example if campaign stats report shows 100 impression than I want to know 100 impression individually where they shown. Can anybody help me how I achieve this functionality of facebook marketing api.
Thanks
Hej,
You can breakdown the data by platform, device and such (check Facebook API Documentation about Breakdowns ) but as far as I am aware the API always aggregates Views that come from the same source or occurred in the same timeframe.
I am trying to collect data about a post on facebook from its graph api. I am able to get all the other information (like comments, when the comment was created, who created it, etc etc) but i am not able to find the timestamp on the reactions. That is i want find out at what time (and date) did the user add the reaction. Does facebook have this information? If yes, then how do i get that information using graph api?
Does facebook have this information?
Most likely they do.
If yes, then how do i get that information using graph api?
You don’t, because they do not provide that information via API.
For a page you manage you could set up a webhook for the feed endpoint; that will get you updates for everything that happens on the feed - new posts, new comments, new reactions ... You’d have to filter out the reactions on your end, and then you could record them in your database with a timestamp that should be close enough. (That will only work for new reactions though, and not already existing ones.)
Yes , you can get details of comment by:
https://graph.facebook.com/{page-id}/{post-id}/reactions?access_token={page_token}
We have spent several days looking into FB Graph API and third party tools for scraping FB data but cant figure out if it is even possible to scrape what we are looking for and if it falls into FB policies (really not looking forward to start a lawsuit with FB).
We need to obtain statistic of how often is specific question (read - problem that we will try to solve) posted on Facebook. We need to get all FB posts filtered by three criterium:
Location - country or city of user that posted the post
Time - Some reasonable period of time, for example a full month, week or day
Keyword - keyword that can be associated with questions that we are looking for
We would then takes this data set and manually go over it in order to distinguish whats relevant to us and what is not. Maybe use some language processing engine like wit.ai or api.ai to use data set to teach app to regonize which posts are relevant and which not. But thats on us, later.
So the question: Is it possible (technically and also from FB policies point of view) and what would be the steps to get FB posts filtered by three criterium stated above?
I'm trying to get reach using the graph api for the previous 7 days.
For this I used
me/insights?metric=page_impressions_unique&period=day&since=1462924800&until=1463529600
The problem is that the total reach returned by the above url is not equal with the reach displayed on the facebook website/ insights tab(please see the fig1 for more details).
Using the api I get Reach 2293, BUT facebook displays 494 people reached, for the same period of time.
I'm thinking that maybe i'm not using the same metric as facebook does, maybe they are displaying the reach per post and not per page, but this is only my theory.
Can you please help me out to determine the same value as facebook does?
Thanks,
Catalin
The issue is with you query. You're querying for the metrics on yourself. Replace 'me' with the page id.
<page_id>/insights?metric=page_impressions_unique&period=day&since=1462924800&until=1463529600
I am doing some proof-of-concept with Facebook SDK and Graph API to list user's posts using the /me/feed. I am unable to find a reference where I can see the list of possible options that can be passed as parameters.
For example, how can one find only those posts that are made within a specific time range? or how to retrieve only public posts shared by the user>
Could someone please help me by listing all the possible filters?
For getting data in a specific time range, take a look at time based cursors: https://developers.facebook.com/docs/graph-api/using-graph-api/v2.6#paging
/me/posts would be the endpoint to get posts shared by the user only. It´s explained in the links you posted.