Using Facebook Api https://developers.facebook.com/tools/explorer/
Currently i am able to get only own comments, i can not see other people comments on my post.I have allowed all permissions, see attached
Permissions
You can use following syntax of Facebook Graph API:
GET /{object-id}/comments
Source:
https://developers.facebook.com/docs/graph-api/reference/v3.2/object/comments
https://www.reddit.com/r/learnprogramming/comments/4p4e8g
I am working on a simple app using the Facebook Graph API where I can retrieve the comments on a post and delete those comments. I have the following permissions set up: user_posts and publish_actions.
When I try to delete a Facebook comment on one of my posts using my app, I get the following error: "Users can only delete their own comments published by the same app." Is there a way around this? My app can successfully delete the comments that originate from my app, but I want to delete comments that were not posted by my app.
Thanks
I would like to retrieve last actions (likes, reactions, comments) made by an user (me) on Facebook.
So the question is simple: is it possible to do this using graph.facebook.com?
I've searched in StackOverflow and tried with Graph API Explorer on Facebook but without success.
It is not possible, you canĀ“t access the Activity Log with the API.
At first I used my app (on facebook canvas) with publish_stream permission to create a post using Graph API, it was success, the post appeared both in my news feed and my timeline. However, when I called Graph API to delete it, using HTTP DELETE https://graph.facebook.com/{post-id}/?access_token={my-access-token}. It returned true, mean that the post is deleted successfully. But it's only deleted on my timeline and still appear in news feed, i can still comment and like it.
Please, tell me what's wrong with it? In the document, they (facebook) didn't mention this.
How can I delete a post in news feed if my app created this?
I am developing an web app, which connect to facebook, to get posts, and other stuff liked by users. I have problem with getting all posts from user page using news feed(home connection of Grap API).
When getting access token in my app for user, I ask for read_stream, user_activities and offline access permissions. Then, when I use that token, to get json feed for
https://graph.facebook.com/me/home/?access_token=<retrived_access_token>
some posts(which are show on user page) are missing. I found that posts of my friends, which can be seen only by their friends, are not shown in that feed. The same issue is with posts of users which current I am subscribing.
I was searching on that for a while, and I found, that when I use link from http://developers.facebook.com/docs/reference/api/ to get my news feed, there are much more posts. It's seems to use a token generated for test console app for facebook api.
Then I tried to generate access token which would give me similar results using http://developers.facebook.com/tools/explorer?method=GET. But even when I give to generated token all possible permissions I could not get it working good, there were still some missing posts.
I read answer in that post, Facebook graph API does not return all posts for user, which suggested, that this is because of permissions set by my people who publish posts, who don't want their data to be retrieved by an app. I run some quick test, and I found that changing that setting is working( when somebody change that setting her posts will disappear from both feeds - that using my app token for user, and that under link on api reference page), but it's not the case.
It seems that this token generated on api reference page have an special permission.
I really need to get as much posts from user page as possible. I know that I will not get those blocked by their author, but as many of my users subscribe other users I really need to get access to kind of posts shown on user page.
I also read Facebook graph API: feeds missing in json response but it was also not helpfull.
I will really appreciate any help.
It is impossible to get a full list of posts from the feed / home Graph API, but you can use FQL to query the stream table to get almost every post made by friends, here is a quick example of how you would do that with the javascript sdk:
var query = 'SELECT post_id FROM stream WHERE filter_key = "others"';
FB.api('fql', {'q': query}, function(posts) { console.log(posts.data); });
This will get you the post ids, which you can then use with graph api to fetch the rest of the post info. Or you can get the full list of fields here, you can't select * in FQL so you'll have to list each piece you want and then get comments and likes and names separately.
There is an assigned/medium bug on this at http://developers.facebook.com/bugs/228057243915183. You can bump up the priority by subscribing and indicating you can reproduce it.
Also see http://developers.facebook.com/bugs/231621496918030 where Facebook has said "the stream table and me/graph have limitations. See the documentation for more info. We're trying to make this more clear in the future." Personally I don't think there is really any more info in the documentation though.