Facebook Page Posts & Comments Scraper avatar

Facebook Page Posts & Comments Scraper

Pricing

from $1.00 / 1,000 results

Go to Apify Store
Facebook Page Posts & Comments Scraper

Facebook Page Posts & Comments Scraper

Scrape public Facebook Page, profile, and Group posts with comments and replies. Bulk URLs, date filters, no login. Structured JSON for brand monitoring, sentiment, and research.

Pricing

from $1.00 / 1,000 results

Rating

0.0

(0)

Developer

DataFusionX

DataFusionX

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

15 days ago

Last modified

Categories

Features

Limited permissions

Share

Scrape public Facebook posts, comments, and replies without login.
Pages, public profiles, Groups, and single post URLs — bulk targets, date filters, structured JSON/CSV for brand monitoring, sentiment, and research.

Apify Actor


Overview

The Facebook Page Posts & Comments Scraper extracts public timeline posts and their comment threads from Facebook. Paste a Page handle (ronaldo), a public profile or Group URL, or a single post/reel/permalink — the Actor resolves the target, paginates posts, and streams post and comment rows to the dataset.

No Facebook account or cookies are required. Only public content visible while logged out is reachable.

Primary keywords: facebook posts scraper, facebook comments scraper, facebook page scraper, scrape facebook comments, facebook group posts scraper, facebook post comments export.


Key features

FeatureDetail
No loginAnonymous GraphQL access to public Pages / Groups / posts
Bulk targetsMultiple handles and URLs in one run
Posts + commentsEngagement counts, reaction breakdown, nested replies
Date windowafterDate / beforeDate with timezone
Linear or nested outputOne row per post/comment (CRM/CSV-friendly) or nested bundles
Posts-only modeFeed inventory without comment cost
StreamingDataset updates as each post finishes
Residential proxyRecommended; switch country if a public feed returns empty

Supported targets

TargetExample input
Pageronaldo, https://www.facebook.com/ronaldo
Profileprofile.php?id=…, /people/Name/id/ (if public logged-out)
Grouphttps://www.facebook.com/groups/123… (public only)
Post/posts/…, /permalink/…, /reel/…, ?story_fbid=…, pfbid…

Private groups, login-gated profiles, and age/geo-restricted posts cannot be scraped anonymously.


Input

Example — bulk page feed

{
"startUrls": ["ronaldo", "https://www.facebook.com/Meta"],
"maxPosts": 3,
"maxComments": 100,
"profile": "tops_only",
"linearOutput": true,
"proxyConfiguration": {
"useApifyProxy": true,
"apifyProxyGroups": ["RESIDENTIAL"]
}
}

Example — date window (maxPosts ignored)

{
"startUrls": ["yourbrand"],
"afterDate": "2026-07-31",
"beforeDate": "2026-08-01",
"dateTimezone": "+3",
"profile": "tops_only",
"maxComments": 500
}

Example — single post thread

{
"startUrls": ["https://www.facebook.com/ronaldo/posts/pfbid0…"],
"maxComments": 200,
"profile": "default"
}

Parameters

ParameterTypeDefaultDescription
startUrlsstring[]—Handles or full Facebook URLs (bulk)
pageOrUrlstring—Optional single target merged into the list
maxPostsinteger3Recent posts per feed (ignored for post URLs / date filter)
maxCommentsinteger—Cap top-level comments per post
profileenumtops_onlytops_only · default · full_replies
postsOnlybooleanfalseSkip comment scraping
linearOutputbooleantrueFlat post/comment rows vs nested bundle
includeRepliesInLinearbooleantrueEmit replies as comment rows
afterDate / beforeDatestring—YYYY-MM-DD window
dateTimezonestringUTCTimezone for calendar bounds
proxyConfigurationobjectresidentialApify proxy settings
engineenumasyncasync or threads

Output

Post row (type: "post")

{
"type": "post",
"sourceUrl": "ronaldo",
"postId": "1234567890",
"pageName": "Cristiano Ronaldo",
"text": "Training day…",
"permalink": "https://www.facebook.com/…",
"commentCount": 740,
"reactionCount": 12000,
"shareCount": 800,
"reactions": [{ "type": "like", "count": 9000 }, { "type": "love", "count": 2000 }],
"createdAt": "2026-07-28T12:00:00+00:00",
"topsScraped": 100,
"totalScraped": 100,
"coverage": 0.14,
"scrapedAt": "2026-11-06T07:00:00+00:00"
}

Comment row (type: "comment")

{
"type": "comment",
"sourceUrl": "ronaldo",
"postId": "1234567890",
"commentId": "…",
"parentCommentId": null,
"isReply": false,
"author": "Jane Doe",
"text": "Legend!",
"reactionCount": 4,
"createdAt": "2026-07-28T13:10:00+00:00",
"scrapedAt": "2026-11-06T07:00:01+00:00"
}

Export from the Dataset tab as JSON, CSV, or Excel, or pull via the Apify API / MCP.


How to use

  1. Open the Actor on Apify and click Try for free.
  2. Add one or more Page handles or Facebook URLs under startUrls.
  3. Set maxPosts / maxComments (start small on a quiet page to estimate cost).
  4. Keep residential proxy on; change country if results are empty.
  5. Run → open Dataset → filter Posts / Comments views.

Runtime notes

  • Comment pagination has no artificial page cap unless maxComments is set. Viral posts take longer and use more proxy bandwidth.
  • Measure one post on your target before scaling maxPosts.
  • Empty public feeds are often proxy country issues, not Actor bugs.

Use cases

  • Brand and competitor Facebook comment monitoring
  • Sentiment / VoC pipelines on public threads
  • Market research on viral posts
  • Group discussion export (public Groups)
  • LLM / RAG corpora from public comments

Limitations

  • Public content only (no private Groups or login-gated profiles)
  • Nested replies are one level deep when enabled
  • Facebook may rate-limit or geo-filter; use residential proxies
  • GraphQL doc_id values can drift; the engine treats them as configurable

FAQ

Does this Facebook comments scraper need a login?

No. It uses anonymous access suitable for public Pages, Groups, and posts.

Can I scrape a Facebook Group?

Yes — public Groups only. Private Groups require authentication and are out of scope for this Actor.

Why did I get 0 posts?

Common causes: wrong proxy country, private/login-gated target, or a handle that does not resolve logged-out. Try a numeric id, a direct post URL, or another residential country.

How is this different from browser scrapers?

It talks to Facebook’s public GraphQL endpoints (same family of queries used by the site), which is typically faster and more stable for comment pagination than pure HTML scraping.

Can AI agents run this Actor?

Yes. Use the Apify API, Python/JS SDK, or MCP connector. See AGENTS.md for machine-oriented input/output contracts.


You are responsible for complying with Facebook’s Terms of Service and applicable privacy laws (comment author names are personal data). Use scraped data only with a lawful basis.