How to get other's comments to my post through facebook api - facebook

I want to get who commented or liked to my post on Facebook through facebook api.
I used Facebook Graph API and could get post_id.
And used this endpoint: {POST_ID}/comments, but it returned only my comments.
Is there any way to get other's comments with user id?

Related

Getting demographics details of people who have liked a post on a Facebook Page

I'm trying to get demographics information (mainly Location) regarding the people who like a particular post on a page owned by someone else.
For example, for a post on CocaCola's FB Page, I'm trying to get the reactions for a particular post by using this following string in the Graph API Explorer: 40796308305_10155753622733306/?fields=reactions{name,link,type}
Is there a way to also get location of the person who reacted to the post?
I'm using Graph API v2.6

Facebook API : get user likes other than Pages

I'm trying to build an app that needs to get what a facebook user likes. By "likes" I mean not only which facebook pages the user is following, but also all likes related to posts, photos, or non facebook urls.
All I've found in the API doc is this endpoint:
http://developers.facebook.com/docs/graph-api/reference/v2.2/user/likes
Unfortunately, it only returns facebook pages a user likes. Is there a way to get what I'm looking for?
No, there is no way to achieve what you are doing using Graph API v2.0 and above.

Facebook Graph Api 2.1: get comments marked as spam

I'm using the Facebook Graph Api v2.1 to get all comments on the posts we do on our Facebook page. I noticed we are missing some comments because Facebook has marked them as Spam. Is there a way I can retrieve these comments too? I tried this:
Identify Spam from fb:comments via FQL
.. but all comments come back with is_private "false". So I take it I have to go up one level and add a property to the API call.. Searched through the maze of documentation over at Facebook, but no luck..
Here is the URL I use to get the comments:
/v2.1/{0}/comments?fields=id,from,message,created_time&access_token={1}
where {0} is the object id of the post and {1} the access token.
Any ideas?

Facebook Graph API /{page-id}/feed not getting all posts

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.

How to comment and Like on friends wall through FBGraph API?

How to comment and Like on friends wall through FBGraph API?
Documentation with examples on how to do this is at at http://developers.facebook.com/docs/api/.
You need to
authenticate (get an access token)
know your friend's ID
do an HTTP POST to the right URL to create posts or like existing posts.
The section labelled "Publishing" on the aforelinked documentation page shows how to do this.