Call it
curl https://api.peume.com/v1/call/list-facebook-comment-replies \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"expansion_token": "your expansion token",
"feedback_id": "your feedback id"
}
}'const res = await fetch("https://api.peume.com/v1/call/list-facebook-comment-replies", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"expansion_token": "your expansion token",
"feedback_id": "your feedback id"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/list-facebook-comment-replies",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"expansion_token": "your expansion token",
"feedback_id": "your feedback id"
}
},
)
print(res.json()["output"])Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: list-facebook-comment-replies.
Parameters
cursorstringThe cursor to paginate to the next page
expansion_tokenRequiredstringPass the comment's complete, fresh expansion_token from /facebook/post-comments with sort=all for unfiltered replies. Do not reuse a token from the Most relevant view.
feedback_idRequiredstringThe *feedback_id* of the comment. Be careful, this is not the comment id. You can get the feedback_id from the /facebook/post-comments endpoint.
