Facebook Group Posts Scraper avatar

Facebook Group Posts Scraper

Pricing

from $5.00 / 1,000 results

Go to Apify Store
Facebook Group Posts Scraper

Facebook Group Posts Scraper

Given Facebook group URLs, returns the latest posts.

Pricing

from $5.00 / 1,000 results

Rating

0.0

(0)

Developer

Han

Han

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

2 days ago

Last modified

Share

Scrape visible posts from Facebook groups. The actor returns rows shaped like Apify's apify/facebook-groups-scraper output model, with legacyId intentionally omitted.

Inputs

  • startUrls — Array of Facebook group URL objects, for example { "url": "https://www.facebook.com/groups/1234567890/" }. Required.
  • resultsLimit — Number of posts to output for each group. Default 10; range 1-100.
  • viewOption — Sorting order matching Apify's Facebook Groups Scraper: CHRONOLOGICAL, RECENT_ACTIVITY, TOP_POSTS, or CHRONOLOGICAL_LISTINGS. Default CHRONOLOGICAL.
  • maxComments — Maximum visible comments to output in topComments for each post. Default 20; range 0-100.
  • maxConcurrency — Maximum parallel browser fetches for group and post detail pages. Default 5; range 1-10. Lower it if runs hit memory limits or Facebook throttling.

For backward compatibility, the actor still accepts groupLinks, maxPosts, and max_concurrency, but the public input schema uses startUrls, resultsLimit, and maxConcurrency.

Example input

{
"startUrls": [
{ "url": "https://www.facebook.com/groups/1234567890/" }
],
"resultsLimit": 10,
"viewOption": "CHRONOLOGICAL",
"maxComments": 20,
"maxConcurrency": 5
}

Output

The actor writes one dataset row per scraped post or failed item. Main fields:

facebookUrl, url, id, feedbackId, time, title, text, user, collaborators, attachments, likesCount, sharesCount, commentsCount, topComments, price, location, link, actionLink, previewTitle, previewDescription, previewSource, previewTarget, textReferences, isVideo, viewsCount, paidPartnership, error

Notes:

  • legacyId from the reference actor is intentionally not emitted.
  • user contains available post-author details: id, name, url.
  • topComments contains visible comment details: id, url, text, time, likesCount, user.
  • attachments contains visible image/link attachments when available.
  • Rows with a problem include an error field instead of failing the whole run when possible.

Authentication

Apify authentication comes from the user_cookies environment variable, mapped to the @facebookCookies secret in .actor/actor.json. The cookie export must come from a logged-in Facebook session and include c_user and xs; tracking cookies such as datr, sb, fr, or wd are not enough.