I have been making a data connector that uses Facebook's page insights API. Everything was going well until the list of metric names for the API were taken off of the page I had been using for reference. Here is the url of the page. https://developers.facebook.com/docs/graph-api/reference/v3.3/insights`
I tried searching other Facebook pages in case they simply moved the list, but I was unable to find it anywhere. I also tried searching for metrics through other posts, but I was only able to find a handful.
I would appreciate it if someone could share any metric names you may know.
This already had been reported as a bug and had been assigned. See https://developers.facebook.com/support/bugs/2380036958945411/
Related
I'm new on working with Facebook and honestly I found it very confusing, terminology and documentation seems to be very ambiguous in many cases. Can somebody please help me out with a plain english explanation on how I can achive the following?
Post and image to Facebook (on the user page) and then check the stats (insights) of that post.
Till now I have managed to:
1) Create an app
2) Post the image on the user page with the desired message
I'm not able to understand how I can retrieve information about the particular image which was uploaded through my app. I want to know how many people have viewed that image, how many likes did it get, how many times it was re-shared.
Is it possible at all?
I'm posting to /photo not too /feed and I will like to keep it this way if it is possible.
Sorry if this was answered already but I spent a few hours trying to find an appropriate answer but wasn't able to get the right documentation.
UPDATE 1
After having a couple of days off from this topic and receiving the first 2 answers, I took another dive into this. Now I have tried the Graph API Explorer as suggested, and using the ID of a POST I can get some details about the POST, but the insights aren't showing anything, just next and previous.
My goal is to be able to gatther some stats about the pictures uploaded through the app. If this is not possible directly what should be the approach I need to take?
I don't believe a personal /photo has /insights attached to it - the Insights Object documentation page suggests that they do not - but you should be able to get likes, shares, and comments via the API.
It would appear FB has launched a redesign/reorganization of its documentation in the last couple of weeks, but the documentation for the /photo graph object is here -- you will need the user's Access Token, and the API endpoints you're looking for each have links to their own documentation pages there, including example code for each type of request.
Edit (summarizing discussion in comments):
There is no method via the Facebook API to gather insights for all photos posted to individual user timelines via an app. The app can gather likes, shares, and comments for each of those objects individually via API requests, and can make API requests for insights for photos posted to its own timeline. Neither of those options solves the intended use case here.
I'd recommend a solution that uses Sharing rather than an app integration, as this allows for better access to insights on the photos being shared. This is also a much simpler integration, and less brittle wrt future Platform changes. The main tradeoff is that the original photos being shared are expected to expire after a couple of months -- if this is unavoidable, I'd suggest implementing a redirect for requests for expired objects on the site.
We are able to get different kind of photos or picture Using Graph API
like as below:
1.Page Photos
Photos for a Facebook Page.A Page Access Token is required for all methods.Find here
2.Page Picture
Picture belonging to a Facebook Page. Find here
3.Photo
Represents an individual photo on Facebook. Find here
4.User Photos
Photos for a person.Find here
I hope it's helps you.
I am attempting to pull page insights metrics using the Facebook Graph API Explorer, but only a handful seem to be accessible. After failing to pull these metrics using the "read_insights" permission, I checked every box from "User Data Permissions", "Friends Data Permissions", and "Extended permissions." I still can not access most metrics.
An example GET request:
//insights/page_fans
...returns an empty dataset even though I am an administrator of this page and have permission to access to this data. I currently only get data back from: page_story_adds_unique, page_friends_of_fans, page_admin_num_posts, page_admin_num_posts_by_week.
Any insight would be appreciated.
See answer at https://stackoverflow.com/a/16894466/897489 - the default time span Facebook uses is not working because they appear to have missing data. You need to use since and until to get anything useful out.
Using Facebook Graph API, for group posts, we were able to retrieve the data for comments and likes. Now with the introducing of Seen By info on group posts, there seems no API exposed to get the Seen By data yet, or there is? We are not able to find that info with documentation at https://developers.facebook.com/docs/reference/api/post/.
As #Tommy Cursh suggested, currently there is no API available to get the Seen By data programmingly. Hopefully Facebook will provide it someday soon.
I am having this problem. When I try to get the links posted by the user or page it works fine for all, except for high traffic users or pages like 'thebeatles' or 'ladygaya' or'machaeljackson' etc.
One thing we found out was that when you fetch links through graph api, it gives all the comments and evrythign back. In case of celebrity pages, there are thousands of comments, whcih are returned back, and cause to throw a curl exception.
So we switched using FQL and its better as it just provides the links, but in this case also FQL does not work for celebrity accounts. We just can't seem to understand why?
Did anyone come across this problem or know of any way to solve this?
Is it possible that you're trying to retrieve so many comments that it's timing out on Facebook's side?
Have you tried asking for a subset of the comments using offsets or timestamps? Check the 'searching' section of https://developers.facebook.com/docs/reference/api/ for more information
(disclosure: I work for Facebook in the Developer Relations team)
I have worked a lot on facebook graph api and used fql also. Recently i got a task to get all comments which are flagged on a specific page.
Could someone can help me out to get the solution. I searched a lot but unable to find the solution for the same.
Unfortunately information about whether a comment is flagged is not accessible through any of facebook APIs
http://forum.developers.facebook.net/viewtopic.php?id=86342