How to list Facebook comment replies with an AI agent
Get normalized JSON for the replies under a Facebook post comment, including author, text, reactions, and timestamps
On this page
You have 25 Facebook post comments to monitor before a campaign review and need the replies under each one in a table
The deliverable is one row per reply with authorName, text, createdUtc, reactionCount, replyCount, authorProfilePicture and feedbackId, plus a parent key for the comment you queried. This guide covers the input fields, the output fields that rank a thread, the cursor step and a cost plan. No run has been executed for it, so the worksheet below is a design and the values are placeholders showing the shape
Example input and table design
Example input for one comment, with an invented expansion token and an Example feedbackId. The reader replaces both with values from the post comments endpoint
feedbackId | expansionToken |
|---|---|
| Example feedbackId | example expansion token |
The deliverable table keeps one row per reply. The input comment's feedbackId is the parent key, while the reply's feedbackId is the reply field from the output. Keep both keys: one groups the thread, one identifies the reply. Values here are placeholders showing the shape
| parentFeedbackId | id | authorName | text | createdUtc | reactionCount | replyCount | authorProfilePicture | feedbackId |
|---|---|---|---|---|---|---|---|---|
| Example input feedbackId | Example reply id | Example Author | Example reply text | 1730000000 | 4 | 0 | Example profile URL | Example reply feedbackId |
A parent comment with found: false has no reply rows, so the table records the parent key and leaves the reply fields empty
The input the tool takes
anyapi.facebook.comment_replies takes two required fields. feedbackId is the comment's feedback_id, not the comment id. expansionToken is the comment's expansion_token, both from the post comments endpoint. cursor is optional and comes from a previous response
Agents call it through POST /v1/runs with toolId anyapi.facebook.comment_replies. The tool description says it lists replies to a Facebook post comment as normalized JSON, with text, author, reactions and timestamps
Read the output fields that rank a thread
Start with found and data. found is true when replies were found and false when the lookup returned nothing. When found is false, reason is not_found and data can be null. A null data is the no-result shape, not a table of zero rows. A found: false answer is a successful call, not an error
Each reply sits in data.replies and carries the fields you need for the decision. reactionCount is the number of reactions on the reply. createdUtc is UTC epoch seconds, so multiply by 1000 for a JS Date. replyCount is the number of replies nested under that reply. Use the reply id as the row key and the reply feedbackId as the Facebook feedback identifier. Sort the parent threads by reactionCount and then by createdUtc to decide where to respond first
Page through replies with the cursor
data.hasNextPage shows whether more replies are available beyond this page. When it is true, pass data.nextCursor back as cursor and call again. When data.nextCursor is null, that lane has no more. The limit is per reply lane: one call returns one page, so a busy comment needs repeated calls until data.hasNextPage is false
The agent prompt
Run this prompt with your 25 comment records. It starts the Skill setup, checks the current tool inputs and price, pages replies and returns the table
Set up https://purrkey.app/SKILL.md, then use Purrkey to list Facebook
comment replies for the 25 comment records below. Check the current inputs
and price of anyapi.facebook.comment_replies before running anything. For
each comment, call the tool with its feedbackId and expansionToken. When
data.hasNextPage is true, pass data.nextCursor back as cursor and call again
until it is false. Return one table with parentFeedbackId, id, authorName,
text, createdUtc, reactionCount, replyCount, authorProfilePicture and
feedbackId. Do not invent replies. If found is false, keep the parent
feedbackId in the table with no reply rows and note reason as not_found.
Example input for one comment, replace with your 25 rows:
feedbackId: ZmVlZGJhY2s6MTM5MzQ2MTExNTQ4MTkyN18yMDgyNjUzMjQ1ODA5Mzg3
expansionToken: example-expansion-tokenEstimated tool cost
The catalog lists anyapi.facebook.comment_replies as max_call: Maximum per call. Successful runs settle at the actual AnyAPI charge. The price is $0.0012 per call, from the Purrkey catalog read on November 12, 2026
The totals below are ceilings, not settled charges
| Step | Formula | Unit price | Planned quantity | Total |
|---|---|---|---|---|
| One comment thread | calls x max price | $0.0012 per call | 1 | $0.0012 |
| 25 comment threads | calls x max price | $0.0012 per call | 25 | $0.03 |
Agent model fees are not counted in these totals
Start with the comment replies tool
Open the Facebook comment replies tool to check the current card and run the first comment. Replace the Example row with your 25 comment records before the campaign review
Get started by giving this to your agent
- Claude Code
- Codex
- Gemini CLI
- Cursor
- GitHub Copilot
Set up https://purrkey.app/SKILL.md, then use Purrkey to show me what I can do with Facebook.FAQ
How do I list Facebook comment replies with an AI agent?
Call the Facebook comment replies tool with the comment's feedbackId and expansionToken, then page with cursor when data.hasNextPage is true. The response returns normalized JSON with reply text, author, reactions and timestamps.
What inputs does the Facebook comment replies tool take?
It requires feedbackId, the comment's feedback identifier rather than the comment id, and expansionToken from the post comments endpoint. cursor is optional and comes from a previous response.
How does pagination work for Facebook comment replies?
Read data.hasNextPage; when it is true, pass data.nextCursor back as cursor to continue. data.nextCursor is null when that lane has no more.
What does found false mean for Facebook comment replies?
found is false when the lookup returned nothing, and reason is not found. A found: false answer is a successful call, not an error.
How much does it cost to list replies for 25 Facebook comments?
At the catalog maximum per call price of $0.0012 per call, 25 comment threads at one call each are at most $0.03. One comment thread is at most $0.0012.
What fields should I use to compare Facebook comment threads?
Use reactionCount for reply reactions and createdUtc for freshness; createdUtc is UTC epoch seconds, so multiply by 1000 for a JS Date. replyCount shows nested replies under a reply.
Can I pass the comment id instead of feedbackId?
No. The input requires feedbackId, the comment's feedback identifier, not the comment id, plus expansionToken.
Next step
Try this with Facebook
The tool directory lists every endpoint with its current price. Inspect the inputs there, then let your agent run a small batch before scaling up.