Facebook Group & Post Scraper (Posts, Comments, Media) avatar

Facebook Group & Post Scraper (Posts, Comments, Media)

Pricing

Pay per usage

Go to Apify Store
Facebook Group & Post Scraper (Posts, Comments, Media)

Facebook Group & Post Scraper (Posts, Comments, Media)

Fast, reliable & stealth Facebook scraper. Extract group posts, full nested comments with replies, reactions, shares, author info, and high-res media. Export to CSV, Excel, or JSON.

Pricing

Pay per usage

Rating

0.0

(0)

Developer

RoYz

RoYz

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

3 days ago

Last modified

Share

πŸš€ Facebook Group & Post Scraper (Posts, Comments, Media)

An all-in-one, high-performance scraper for Facebook Groups and Posts. Extract feed posts, complete nested comment threads (with replies & mentions), reactions, shares, and high-resolution media attachments.

Built with Anti-Ban Stealth technology and full session protection (datr, sb, c_user, xs), ensuring your account remains completely safe without unexpected logouts or checkpoints.


🌟 Key Features

  • πŸ“₯ 1. Latest Group Posts Extraction (Fast):

    • Automatically fetches the newest/latest posts directly from the top of the group feed.
    • Post text content, post ID, and author name & ID.
    • Exact publication timestamp (formatted as YYYY-MM-DD HH:MM:SS).
    • Reaction counts (Likes, Loves, etc.), comment counts, and share counts.
    • Direct permalinks to each post.
    • Pipe-delimited media URLs (url1 | url2) for clean single-line Excel rows.
    • Zero-width space (\u200b) protection so Excel won't corrupt large Facebook IDs into scientific notation (e.g. 1.79E+15).
  • πŸ’¬ 2. Deep Post Comments Extraction:

    • Extracts root comments and all nested replies.
    • Captures commenter profile names, author IDs, comment timestamps, and mentions.
  • πŸ“Έ 3. High-Resolution Media Extraction:

    • Extracts direct full-size image & video URLs from single posts or multi-photo albums.
  • πŸ›‘οΈ 4. Anti-Ban Stealth & Safe Sessions:

    • Uses selenium-stealth to mask automation indicators (navigator.webdriver).
    • Injects full cookie headers (datr, sb, c_user, xs) to preserve device fingerprints and prevent Facebook from triggering security checkpoints.

πŸ“Š Comparison: Why Choose This Scraper?

FeatureThis ActorTraditional Scrapers
Account Safety (Session Preservation)βœ… 100% Safe (Full Cookie Sync)❌ Often causes account lockout
Excel-Ready Formattingβœ… IDs & Dates Pre-Formatted❌ Numbers broken in Excel
Nested Comment Repliesβœ… Full Thread Extraction❌ Top-level comments only
Album & High-Res Mediaβœ… Direct Image & Video URLs❌ Thumbnails only
Speed & Reliability⚑ Direct GraphQL Pagination🐒 Slow DOM parsing

πŸ“– How to Use

Step 1: Get Your Facebook Cookies (c_user & xs)

  1. Open Chrome/Edge and log in to Facebook.
  2. Open Developer Tools (F12) -> Application -> Cookies -> https://www.facebook.com (or use the free Cookie-Editor extension).
  3. Copy the value of c_user and xs.

Step 2: Configure & Run

  1. Target URL: Paste the Facebook Group URL (e.g. https://www.facebook.com/groups/luxurycondobkk/).
  2. c_user & xs: Paste your c_user and xs cookie values into the respective fields.
  3. Set the Max Posts you wish to scrape and click Start.

πŸ“₯ Input Parameters

ParameterTypeDescriptionDefault
urlStringFacebook Group URL to extract posts fromRequired
c_userStringFacebook User ID cookie (e.g. 100084729...)Required (or cookie)
xsStringFacebook Session token cookie (e.g. 24%3A...)Required (or cookie)
countIntegerMaximum number of latest posts to extract20
cookieStringAlternative: Full Cookie Header String (c_user=...; xs=...; datr=...)Optional
user_agentStringCustom User-Agent for custom browser simulationLatest Chrome

πŸ“€ Sample Output Data (JSON / CSV)

{
"post_id": "​1795628701447592",
"author_id": "​61590621901221",
"author_name": "Luxury Real Estate",
"text": "Exclusive penthouse for sale in Bangkok CBD. Prime location, 3 bedrooms, 250 sqm.",
"created_time": "2026-08-21 18:55:00",
"reaction_count": 48,
"comment_count": 12,
"share_count": 5,
"permalink": "https://www.facebook.com/groups/luxurycondobkk/posts/1795628701447592/",
"media_total_count": 4,
"media_urls_complete": true,
"media_urls": "https://scontent.xx.fbcdn.net/v/...jpg | https://scontent.xx.fbcdn.net/v/...jpg",
"comments": "Comment | John Doe | author_id: 10001 | 2026-08-21 19:10:00 | Is this still available?"
}

πŸ’‘ Best Practices & Tips

[!WARNING] DO NOT USE YOUR MAIN PERSONAL ACCOUNT! Web scraping carries inherent risks. Facebook strictly monitors automated behavior. Even with our advanced stealth technology, accounts used for scraping may face temporary checkpoints or permanent bans. Always use a secondary, dummy, or burner account dedicated specifically for data extraction to ensure your primary personal account remains safe.

  • Preserve datr & sb: Always copy the full cookie string from Cookie-Editor to maintain session integrity and prevent login alerts.

This actor is designed for authorized research, marketing intelligence, and personal data management. Users are responsible for complying with Facebook's Terms of Service and applicable privacy regulations (GDPR/CCPA).