I am using the comment-id to get the from field and using the page access token:
[comment-id]?fields=from&access_token=[PAGE_ACCESS_TOKEN]
But I am not getting the desired output, I am getting back the comment-id only
{
"id": "[comment-id]"
}
I am not getting what mistake I am making here.
Any help is appreciated.
TIA
2
Answers
Use the
{pagepost-id}_{comment-id}
format instead.Example Request:-
Response:-
Additionally, To get all the comments made on a Facebook page post you can use the following API call:-
Request:-
Here in the URL, 111282025112345 is
page_id
and 222277054012345 ispost_id
.Response:-
Hope this helps.
In order to see data from other users and not your business, you need Advanced public_profile permission.
https://developers.facebook.com/docs/permissions/reference/public_profile/