I need object comment list with their authors for extraction statistical information about author and their comments. FB Graph api allow me to get comment list but there no way to get information about comment author.
Asked
Active
Viewed 3,678 times
1
-
did you find any solution on this? – Syed Ibrahim Jan 20 '20 at 10:51
-
No. Looks there no solution for that. – nagiyevel Jan 24 '20 at 06:35
-
Yes you can, You have to pass page access token rather than app access token. – Syed Ibrahim Jan 24 '20 at 07:10
1 Answers
1
Since v2.11 of the Graph API, you can only get user information about comment authors by using a Page Token. You can only get a Page Token if you manage the Page. There is no way to get the author data if you do not manage the Page.
Changelog: https://developers.facebook.com/docs/graph-api/changelog/version2.11#gapi-90
Also, make sure you ask for the relevant fields: /post-id/comments?fields=message,from
andyrandy
- 72,880
- 8
- 113
- 130
-
1I think I didn't explain my question well. I want to get list of dependencies user - comment count for competition. From graph api I can get list of comments like /{object-id}/comments . But it returns only created_time, message and id of comment. I need a way to identificate who wrote this comment. – nagiyevel Dec 25 '17 at 09:43
-
i know, it is a well known issue because it was changed recently. read my answer again, it is all in there. i also added some information about declarative fields, just in case you do not know about that. – andyrandy Dec 25 '17 at 09:58
-
also hightlighted the very important part. no ownership, no page token, no user data. – andyrandy Dec 25 '17 at 10:01
-
@luschn I would think that having manage_pages permission would be enough, wouldn't it? I am the admin of a page so I would think I have it. I'm using a REST Source task in SSIS to pull the data, passing in the appID and secret for the app I created. Does the app need specific permissions? I can get the information when I do it on my own page, but not the company page. My only thought is that the token being passed is not being 'seen' as a page token. – Matt Cushing Dec 27 '17 at 20:17
-
manage_pages should be enough, yes. maybe you do not have the required user role in your company page? do you really get a page token for the company page? – andyrandy Dec 27 '17 at 20:25
-
1Have this changed ? I made an app that used PageToken to retrieve the 'from' field, working great, but now is not retrieving the user, except if the comment is made by me or in behalf of the page. But I wont get the 'from' from other users. – omarojo Jul 04 '18 at 23:31
-