API · Facebook
GET /facebook/posts/comments
A Facebook post’s comments, paginated, ranked or all.
| Request | GET /v1/facebook/posts/comments |
| Operation id | facebook.post.comments |
| Cost | 2 credits, refunded if the call fails |
| Auth | API key: Authorization: Bearer <key> or x-api-key. |
A Facebook post’s comments, paginated, ranked or all.
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
url | string | no | The post URL. |
feedback_id | string | no | The post’s feedback_id. |
sort | "most_relevant" | "all" | no | One of most_relevant, all. |
after | string | no | The previous page’s end_cursor. |
Responses
| Status | Meaning | Schema |
|---|---|---|
200 | A page of comments. | FacebookComments |
400 | Invalid input. Nothing was charged. | Error |
401 | Missing or invalid API key. | Error |
402 | Not enough credits, a spend cap was reached, or payment is required. | Error |
403 | The target is private, or the account is suspended. | Error |
404 | The ad, Page or advertiser is not in the Meta Ad Library. | Error |
429 | Too many requests. Wait for Retry-After seconds. | Error |
503 | Facebook is temporarily unavailable. Retryable; nothing was charged. | Error |
FacebookComments fields
| Field | Type | Description |
|---|---|---|
comments | FacebookComment[] | |
page_info | object |
Errors use one shape everywhere; see Errors for every code and what to do.