Scrape public Facebook group posts and, optionally, the people who COMMENT on them (repliers), with no login. Get post text, author, time, images, reactions, plus each commenter's name, profile link, text, and any phone number. Great for lead generation. Turn on Fetch comments to include repliers.
Optional cost cap on the total number of posts returned across every group combined. Leave this blank to return ALL matching posts from every group. If you set a number, the actor stops once it reaches that total. There is no upper limit, so on large groups a blank value can return a lot of posts (you pay per result). Example: set 500 to stop after 500 posts total.
Type:integer | null
Minimum:0
Max posts per group (optional cap)
maxPostsPerGroup
Optional
Optional cost cap on how many posts to take from each single group. Leave this blank to scrape ALL available posts from every group. If you set a number, scraping of a group stops after that many posts. Combined with the total limit above, whichever is hit first wins. Big or active groups can hold thousands of posts, so a blank value can return a lot (you pay per result). Example: set 25 to take at most 25 posts per group.
Type:integer | null
Minimum:1
Posted after
postedAfter
Optional
Optional. Only return posts published on or after this date. Accepts ISO format (YYYY-MM-DD). Useful for monitoring a group over time without re-scraping old posts.
Type:string | null
Keyword filter
keyword
Optional
Optional. Only return posts whose text contains this string (case-insensitive). Useful for lead-gen, brand monitoring, or moderation use cases.
Type:string | null
Fetch comments (repliers) - great for leads
fetchComments
Optional
OFF by default. Turn ON to also collect the people who COMMENT on each post, not just the post. Each post gets a 'comments' list: the commenter's name, profile link, comment text, any phone number in the text, timestamp, and reply depth. Perfect for lead generation, e.g. buyers/renters or interested customers replying to a listing. Cost note: this loads each post's page to read its comments, so it uses a bit more time and compute; to keep it cheap we automatically SKIP posts that have zero comments and only fetch the ones that actually have replies. No login needed.
Type:boolean
Default:false
Max comments per post (optional cap)
maxCommentsPerPost
Optional
Optional cap on how many comments to keep per post. Leave blank to keep all comments available on the post's page. Only applies when 'Fetch comments' is on. Example: 30.
Type:integer | null
Minimum:1
Known post ids (skip their comment fetch)
knownPostIds
Optional
Posts you already ingested on a previous run (numeric post ids, or full post URLs - the numeric id is extracted either way). Known posts are still returned from the cheap group-feed fetch, but their page is NOT re-opened to read comments, which is the per-post cost driver. Use this when scanning the same groups on a schedule so you only pay comment fetches for posts you have never seen. Leave empty to fetch comments for every post. Example: ["2174749456705215"].
Type:array | null
Facebook cookies (for private/closed groups only)
cookies
Optional
ONLY needed for private or closed groups. Leave EMPTY for public groups.
The Facebook account you copy cookies from MUST already be a member of the target group — we cannot join groups on your behalf.
How to get them (Chrome/Edge/Brave):
Open facebook.com in your browser and log in to the account that is a member of the group.
Open the browser's developer tools: press F12 (or right-click anywhere → Inspect).
Go to the 'Application' tab (Chrome/Edge) or 'Storage' tab (Firefox).
Find the rows named: c_user, xs, datr, fr, sb. Copy each row's 'Value'.
Paste them here as one line, separated by '; ', like: c_user=12345; xs=abcd; datr=efgh; fr=ijkl; sb=mnop
Easier option: install a cookie-export browser extension (e.g. 'Cookie-Editor' or 'EditThisCookie'), open facebook.com, click the extension, choose 'Export as Header String', paste here. JSON exports from cookie extensions (e.g. 'Export as JSON' in Cookie-Editor) are also accepted.
These cookies give full access to your Facebook account. Treat them like a password. Apify stores this field as a secret.