Facebook Graph Api 2.1: get comments marked as spam - facebook

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?

Related

Facebook Graph API unable to get comments from user's post

The Facebook Graph API seems no way to get any comments other than user itself posted from users' any Post, Album, Photo or Video nowadays. The /{object-id}/comments doc said A User can only query their own comments. Other users' comments are unavailable due to privacy concerns., also For the following nodes, the /comments endpoint returns empty data if you read it with a User access token:.
Does it really means Facebook Graph API unable to get user post's full comments in any way?
If this is for "personal use" your own user token then yeah you won't have a choice to bring anything else but if you're using a Page Token for a page that you manage then you can get the posts and comments but I'm currently unable to get the Comments "from" data so I can know who the User is (Name)

Facebook Graph API - comments from other users not showing

I'm using the Facebook Graph API and previously, using the /me/posts endpoint and including the comments field, I'd get a list of posts including all comments.
Now I've tried it again, it's not bringing back any comments unless they are my own. This is through the Facebook Graph Explorer and it's behaving the same there though so it's not my application
This is the endpoint I am using
me/posts?fields=from,message,comments
If I put .summary(1) at the end, it shows me there's, for example, 3 comments on a post but the 'data' will just be a blank area.
Has there been a change on Facebook recently in regards to this?
https://developers.facebook.com/docs/graph-api/changelog/version3.0#comments-edge
When read with a User access token, the /comments edge returns empty data for the following nodes...
A lot has changed in the last few weeks, for privacy reasons.
You need to access the comments with a Page Token, not a user or App token.

How can I get the details of all fans of a Facebook page?

Suppose that I am the administrator of a Facebook page, I want to get all of the profile details of a the people who "liked" my page. Is this possible? How?
So far, I have only been able to get aggregated data through the Graph API. For example, "number of like in the past week".
There are posts that claim that I can do this with the FQL API, but the documentation for the FQL seems to have been hidden on FB developer site.
FQL reference is not "hidden", it's here: https://developers.facebook.com/docs/reference/fql But there's no current official way to get the profile details of your Page's liker, because you'd need the permission to query the user data from the users.
There are some "hacks" as denoted at Facebook API: Get fans of / people who like a page for example, but it's strongly advised that you don't use these. Facebook forbids scraping for example, and once Facebook changes its website, those methods are likely to stop working.

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.

Facebook Graph Api json missing posts

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.