Facebook Public Post Comments avatar

Facebook Public Post Comments

Pricing

from $0.72 / 1,000 comments

Go to Apify Store
Facebook Public Post Comments

Facebook Public Post Comments

Export public comments and replies from Facebook post, photo, video and reel links: text, author, date, likes, reply counts and threading. No login, no cookies.

Pricing

from $0.72 / 1,000 comments

Rating

0.0

(0)

Developer

Automation Lab

Automation Lab

Maintained by Community

Actor stats

0

Bookmarked

13

Total users

1

Monthly active users

3 days ago

Last modified

Categories

Features

Limited permissions

Share

Export the public comments and replies from any public Facebook post, photo, video or reel. Paste the links, get one clean row per comment: text, author, date, likes, reply count, threading and attachments. No Facebook account, cookies or login needed.

What does Facebook Public Post Comments do?

It opens each post link you give it the way a logged-out visitor sees it, then pages through the post's full comment list with Facebook's own comment loader. Every comment becomes one dataset row. Turn on Include replies and the replies under each comment (up to 3 levels deep) are exported too, each with its depth and the comment it answers.

  • Works with post permalinks (/posts/pfbid..., /<page>/posts/<id>), photos (/photo/?fbid=, /<page>/photos/<id>), videos (/watch/?v=, /<page>/videos/<id>) and reels (/reel/<id>), plus permalink.php?story_fbid= / story.php links and "Copy link" share links (/share/p/, /share/r/, /share/v/).
  • Three comment orders: all comments, newest first, or Facebook's "most relevant".
  • Date cut-off: keep only comments newer than a date or a span such as 7 days.
  • Fast plain HTTP, no browser: hundreds of comments per minute.

Who is it for?

  • Brand and social media teams tracking what people say under their own and their competitors' posts.
  • Campaign and community managers who export the comments of an ad, giveaway or announcement post.
  • Researchers and analysts who need comment text for sentiment, topic or discourse analysis.
  • Agencies that report audience reactions to clients every week.

Why use this Facebook comments scraper?

  • No login and no cookies: nothing of yours is put at risk, and runs keep working without a session to renew.
  • Replies included on request, with threadingDepth and replyToCommentId so you can rebuild the threads.
  • Stable ids (commentId) to de-duplicate across recurring runs.
  • Pay only for comments saved: a link that cannot be read costs nothing.

How to scrape Facebook post comments

  1. Open the Actor and paste one or more Facebook post links into Facebook post URLs.
  2. Set Max comments per post (replies count towards it).
  3. Optionally turn on Include replies, choose a Comment order and a newer than cut-off.
  4. Click Start. Download the comments as JSON, CSV, Excel or HTML, or read them through the API.

Input

FieldTypeDescription
startUrlsarrayPublic Facebook post, photo, video or reel links.
resultsLimitintegerMax rows per post, replies included. Default 50.
includeNestedCommentsbooleanAlso export replies (up to 3 levels). Default off.
viewOptionstringRANKED_UNFILTERED (all comments, default), RECENT_ACTIVITY (newest first) or RANKED_THREADED (most relevant).
onlyCommentsNewerThanstringOptional: 2026-01-31, 2026-01-31T18:00:00Z, 7 days, 24h, yesterday.

Example:

{
"startUrls": [
{ "url": "https://www.facebook.com/NASA/posts/pfbid02wE2bnKacnW5rQtZJwEjZZyVqXxoZ5NWakfbiznAPBtYxHDrAT8D8uJzt1GB928onl" },
{ "url": "https://www.facebook.com/watch/?v=1056346190744779" }
],
"resultsLimit": 200,
"includeNestedComments": true,
"viewOption": "RECENT_ACTIVITY",
"onlyCommentsNewerThan": "7 days"
}

Output

One row per comment or reply:

{
"facebookUrl": "https://www.facebook.com/NASA/posts/pfbid02wE2bnKacnW5rQtZJwEjZZyVqXxoZ5NWakfbiznAPBtYxHDrAT8D8uJzt1GB928onl",
"postId": "1685704526258250",
"postTitle": "Teth... - NASA - National Aeronautics and Space Administration",
"commentId": "1790717046388865",
"commentNodeId": "Y29tbWVudDoxNjg1NzA0NTI2MjU4MjUwXzE3OTA3MTcwNDYzODg4NjU=",
"commentUrl": "https://www.facebook.com/NASA/posts/pfbid02wE2...?comment_id=2332508050921595&reply_comment_id=1790717046388865",
"text": "Moslim Oskanov IKR?!",
"date": "2026-11-12T22:09:48.000Z",
"timestamp": 1794521388,
"likesCount": 0,
"likesCountText": "0",
"commentsCount": 0,
"threadingDepth": 1,
"replyToCommentId": "2332508050921595",
"profileName": "Shelley Louise Greenaway",
"profileId": "pfbid0TGb2BmZzZ7ZeHBzFux5FG...",
"profileUrl": null,
"profilePicture": "https://scontent.xx.fbcdn.net/v/t39.30808-1/...jpg",
"isVerified": false,
"attachments": [],
"scrapedAt": "2026-11-14T07:12:14.122Z"
}
FieldMeaning
facebookUrlThe post link you supplied.
postId, postTitleThe post's numeric id and page title.
commentId, commentNodeId, feedbackIdComment ids: numeric, encoded node id, encoded feedback id.
commentUrlDirect link to the comment.
textComment text.
date, timestampWhen it was written (ISO 8601 and Unix seconds).
likesCount, likesCountTextReactions on the comment, as a number and as shown (e.g. 1.2K).
commentsCountReplies under the comment.
threadingDepth, replyToCommentId0 for a comment on the post, 1-3 for replies, and the comment a reply answers.
profileName, profileId, profileUrl, profilePicture, isVerifiedThe writer. People with private profiles have an encoded id and no profile link.
attachmentsPhotos, GIFs, stickers and links in the comment (type, url, imageUrl).

How much does it cost to scrape Facebook comments?

You pay a small fee per run plus a price per saved comment or reply. Platform usage is included.

PlanPer runPer 1,000 comments
Free$0.001$0.90
Bronze (Starter)$0.001$0.90
Silver (Scale)$0.001$0.81
Gold and above (Business)$0.001$0.72

Examples on the Free plan: 100 comments cost about $0.09; 1,000 comments about $0.90. The free $5 monthly credit covers about 5,500 comments. Set Maximum charge per run in the run options to cap any run.

Tips

  • For weekly monitoring use Newest first with Only comments newer than 7 days: the run stops reading as soon as it reaches older comments.
  • Use commentId as the key when you merge results of recurring runs.
  • "All comments" returns more than "Most relevant", which lets Facebook hide some comments.
  • The comment total Facebook shows counts replies too, so without replies you get fewer rows than that number.

Use it through the API

Start a run and get the comments with cURL:

curl -X POST "https://api.apify.com/v2/acts/automation-lab~facebook-public-post-comments/run-sync-get-dataset-items?token=<YOUR_API_TOKEN>" \
-H "Content-Type: application/json" \
-d '{"startUrls": [{"url": "https://www.facebook.com/NASA/posts/pfbid02wE2bnKacnW5rQtZJwEjZZyVqXxoZ5NWakfbiznAPBtYxHDrAT8D8uJzt1GB928onl"}], "resultsLimit": 50}'

Or with Python:

from apify_client import ApifyClient
client = ApifyClient("<YOUR_API_TOKEN>")
run = client.actor("automation-lab/facebook-public-post-comments").call(run_input={
"startUrls": [{"url": "https://www.facebook.com/watch/?v=1056346190744779"}],
"resultsLimit": 200,
"includeNestedComments": True,
})
for comment in client.dataset(run["defaultDatasetId"]).iterate_items():
print(comment["profileName"], comment["date"], comment["text"])

Or with JavaScript:

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: '<YOUR_API_TOKEN>' });
const run = await client.actor('automation-lab/facebook-public-post-comments').call({
startUrls: [{ url: 'https://www.facebook.com/NASA/posts/pfbid02wE2bnKacnW5rQtZJwEjZZyVqXxoZ5NWakfbiznAPBtYxHDrAT8D8uJzt1GB928onl' }],
resultsLimit: 100,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.length, 'comments');

Use with AI agents through MCP

Connect the Actor to Claude, Cursor or another MCP client with the Apify MCP server. For Claude Code:

claude mcp add --transport http apify \
"https://mcp.apify.com?tools=automation-lab/facebook-public-post-comments"

Claude Desktop: open Settings → Developer → Edit Config and add:

{
"mcpServers": {
"apify": {
"url": "https://mcp.apify.com?tools=automation-lab/facebook-public-post-comments"
}
}
}

Cursor: add the same mcpServers block to ~/.cursor/mcp.json (or the project's .cursor/mcp.json).

VS Code: add the server to .vscode/mcp.json:

{
"servers": {
"apify": {
"type": "http",
"url": "https://mcp.apify.com?tools=automation-lab/facebook-public-post-comments"
}
}
}

Example prompts:

  • "Export the newest 200 comments on this Facebook post and summarise the main complaints."
  • "Get all comments and replies under our last campaign video and list the questions people asked."
  • "Compare sentiment in the comments of these three competitor posts."

Integrations

Send the comments to Google Sheets, Slack, Airtable, Make, Zapier, n8n or your own webhook with Apify integrations, and schedule runs to monitor posts every day or week.

This Actor reads only what Facebook shows to any logged-out visitor; it does not log in or get around privacy settings. Comments contain personal data (names, profile pictures, opinions), so you are responsible for having a lawful basis under GDPR, CCPA and similar laws, for keeping only what you need, and for following Facebook's terms. This Actor is not affiliated with, endorsed by or sponsored by Meta or Facebook. If unsure, ask a lawyer.

When a run or a post fails, the Actor sends sanitized diagnostic data (the exception, your input with secret fields and URL query strings removed, and the Actor, build and run IDs) to our private GlitchTip error-tracking service so we can repair it. Reports are retained for 30 days.

FAQ

Why do I get fewer comments than the count Facebook shows? Facebook's count includes replies and comments it hides from logged-out visitors. Turn on Include replies and choose All comments to get the most.

Can I scrape comments from Facebook groups? Only from posts that Facebook shows to logged-out visitors. Posts in private or members-only groups and on private profiles are refused with a clear message and cost nothing.

A link failed with "shows this post only to logged-in users". What now? The post is not public. Check that it opens in a private browser window without logging in. A link that is not a Facebook post link is skipped and named in the run status; the other links still run.

Does it download comment photos? It returns the image and link URLs in attachments; it does not store files.

Support

Found a bug or need another field? Open an issue on the Actor's Issues tab and we will help.