Commet  Apify 1 avatar

Commet Apify 1

Pricing

from $0.50 / actor start

Go to Apify Store
Commet  Apify 1

Commet Apify 1

Pricing

from $0.50 / actor start

Rating

0.0

(0)

Developer

Kevin Doshi

Kevin Doshi

Maintained by Community

Actor stats

0

Bookmarked

3

Total users

2

Monthly active users

4 days ago

Last modified

Share

Facebook comments — live scraper (Apify)

This Actor opens each post URL in a real browser (Playwright + Crawlee), scrolls the comment thread, and outputs rows compatible with apify/facebook-comments-scraper, plus from, author, created_time for social-buzzbrand-api (facebookMetaAPI.js).

Modes

ModeWhen
Live scrape (default)mockData: false, pass startUrls with public post permalinks.
MockmockData: true — 6 sample rows only (tests).
PassthroughrawComments: [...] — no browser; normalize and push (ETL).

Input (same as your backend)

{
"includeNestedComments": false,
"startUrls": [{ "url": "https://www.facebook.com/page/posts/pfbid..." }]
}

Optional: maxComments, maxScrolls, scrollDelayMs, useMobileHost, proxyConfiguration.

Production tips

  • Use Apify Residential proxy — Facebook often blocks datacenter IPs.
  • Public posts with comments visible without login work best.
  • Markup changes → maintain src/scrape.js selectors over time.

Local run

cd apify-facebook-comments-mirror
npm install
npx playwright install chromium
mkdir -p storage/key_value_stores/default
cp INPUT.example.json storage/key_value_stores/default/INPUT.json
npx apify-cli run

On Apify Cloud, the Docker image includes Chrome — no playwright install needed.

Docker

Dockerfile uses apify/actor-node-playwright-chrome:20.