Is it possible to get information like the reactions or likes from a certain post in a page that isn´t mine from facebook graph API? - facebook

I´m doing a special project where I need to get info like comments, likes and reactions from a page´s post in facebook but i don´t know if it´s possible or not. I can get the info from my own page with Facebook Graph API but in the final result I need to get the info from another page that isn´t mine
I´ve been searching on google and stackoverflow if it´s possible to get what I need but it seems that the answers are from a long time ago and I want to know if it´s possible to do it now after the news in the past year about Cambridge Analytica doing nasty things with the data

No, even with Page Public Content Access features you cannot get a public page's post likes or reactions, but only comments (but w/o the actual user details, so only the comment text and date/time).

Related

Facebook Graph API insights

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.

Graph API - Facebook - Business Page Tagged Messages, Get Comments

I have a business page on Facebook. I want to see when someone tags my page on their feed in a public post. Further, I want to be able to see the comments that people make on that post. About 3 weeks ago I had no problem doing this. I could then use the Graph API and Graph Explorer to see the:
/tagged?fields=message,from,created_time,likes,comments{from,message,created_time}
....a great deal of information.
Today when I try to access the likes or comments on the tagged post through Graph Explorer I get the greyed out text meaning "Field is empty or disallowed with my access token." However, I have the page access token via Graph Explorer. Can anyone help me with this? Did Facebook change something?
This is not the same as the linked post. I have tested it with all user and extended permissions enabled. I am not trying to see a list of my friends, I am trying to see the name and comment of a friend of someone that tagged my page. The code I posted above worked fine less than a month ago, which was still Graph v2.5.
Each of these has likes and comments yet the API won't allow access.

Does somebody know how to get the fan of the fans page in Facebook (FB) without fans detail data

I just want to get the fans discussion contents without any detail data about fan data like ID / Name etc. I wish I can use FaceBook graph to get chat contents,
Thank you for your patience if you have read my question to the end.
FB did't share free data in V2 version , so that here is no way to pay to get access to this data or Since v2.0 it's no longer possible to search for public posts, so: No, it's not possible

Facebook Like Box - Posts by others not appearing

I am trying to implement the Facebook like box onto my website to show posts by others onto my Facebook page, however it is only showing a feed of the posts the page has made to its timeline and not the posts of other Facebook users.
I'm not sure how I can get this to happen? I'm not bothered about having the page's posts appear but I definitely want other's posts to appear in the feed.
Any help would be greatly appreciated!
Afaik the Plugin only shows posts "by the Page", so that is intentional. Think of it this way: If you get many User postings and only write a few Page postings, your Page postings would just not be very visible in the plugin.
You can only use the "force_checkin" parameter of the plugin to show checkins of friends, see Facebook docs: https://developers.facebook.com/docs/plugins/like-box-for-pages
If you want to get the posts of Users on a Page, you would have to use the Graph API: https://developers.facebook.com/docs/graph-api/reference/v2.1/page/feed
The docs include some example code for most relevant languages and you will get User posts too. Of course you have to design it on your own, you just get data from the API.

How to get Likes of Instagram photo posts in Facebook Graph API?

I am developing an app that processes <used_id>/posts connection to read the posts a user have made and count the likes and comments that have been received.
Yesterday I noticed that Instagram photo posts do not appear in posts connection. After a little search I found this Posts from Instagram not showing up on Facebook Open Graph API after which I was able to see Instagram photos in Feed connection if permission user_actions:instapp was added (or friends_actions:instapp for friend posts).
But two problems remain:
1) The posts still do not appear in Posts connection, which is more convenient for usage in my case because I am not interested in Posts of other users which may appear in Feed.
2) Even if I use Feed connection the posts do not have Likes field filled, does not matter whether I specify it directly or not. I assume that the same goes with Comments. Therefore in my case Feed is also useless because I need Likes data.
The only solution that works is by using <user_id>/instapp:take - there I get all photos also with Likes. So I might use it, but the trouble is - then I need to do double API call, because Instagram posts are not the only in which I am interested in (I still need to call <user_id>/posts).
I have submitted this bug report: http://developers.facebook.com/bugs/131821543664928
Perhaps someone has an idea for a better solution than calling instapp:take?
Thanks!