All Comments
This endpoint allows you to see all the comments of a post or a comment in your page (comments that were created by the API or directly on facebook)
Settings:
URL | |
Method | JSON via POST |
Body:
Parameter | Description / Example | Mandatory | Example |
apiKey | Your API key for the service | yes | 4124-634t462-634733463-5734346 |
from | The ID you received for the connection | yes | 463745743546345 |
postId | The post ID you want to get the comments from | no* | 15625364215_56994166514 |
commentId | The comment ID you wish to get all the comments inside it | no* | 634645636423_5675674565 |
filter | "toplevel" if you wish only top level comments "stream" if you wish to get everything default is "toplevel" | no | toplevel |
order | options: "chronological" "reverse_chronological" default is "chronological" | no | chronological |
limit | How many posts to get (limit pagination) between 1 to 100 default if not provided: 25 | no | 25 |
after | if you are using limit paging, you can provide the "after" value from previous response to load the next batch | no | U56WDF34FA4TER3DA..... |
* Either postId or commentId is required, not both.
Response:
{
"status": "OK",
"from": "463745743546345",
"target": "15625364215_56994166514",
"count": 25,
"comments": [{
"id": "119324881085321_122093459712345",
"message": "Hello fans!",
"from": { "id": "1234567890", "name": "Israel Israeli", "picture": { "data": { "url": "..." } } },
"created_time": "1783596120",
"permalink_url": "https://www.facebook.com/...",
"is_hidden": false,
"like_count": 3,
"comment_count": 3,
"total_reactions": 5
}],
"paging": { "after": "QVFIU...", "hasNext": true },
"reason": 1
}
Response-Explain:
Parameter | Description | ||||||||||||||||||||||
status | OK or FAIL | ||||||||||||||||||||||
count | Total posts in this batch | ||||||||||||||||||||||
target | the commentId or postId you provided | ||||||||||||||||||||||
from | Your ID for the service | ||||||||||||||||||||||
comments | Array of all posts inside your facebook page
| ||||||||||||||||||||||
paging | key that contains two values: "after" that represents the parameter if you wish to get the next batch. "hasNext" can have true if you have more data to load or false if this is the last data | ||||||||||||||||||||||
reason | 'reason' is the status explanation in case of FAIL
|