Facebook Comment Scraper avatar

Facebook Comment Scraper

Pricing

Pay per usage

Go to Apify Store
Facebook Comment Scraper

Facebook Comment Scraper

Free to use : Extract all comments from any Facebook reel, video Supports pagination, nested replies, and bulk URLs. Uses your browser cookies for authenticated access.

Pricing

Pay per usage

Rating

0.0

(0)

Developer

FlowExtract API

FlowExtract API

Maintained by Community

Actor stats

2

Bookmarked

2

Total users

1

Monthly active users

4 hours ago

Last modified

Share

πŸ’¬ Facebook Comment Scraper Extract Comments from Reels, Videos & Posts

Facebook Comment Scraper extracts all comments from any Facebook reel, video, photo, or post using your authenticated browser session. It handles full pagination, and bulk URLs in a single run delivering clean, structured data ready for analysis, moderation, or sentiment research.

Perfect for social media researchers, community managers, and marketers who need Facebook comment data without manually scrolling through thousands of posts.


Why scrape Facebook comments?

Facebook is one of the largest social networks in the world, with billions of public posts generating millions of comments daily. Whether you're tracking brand sentiment, researching audience reactions, or building moderation tools, comment data is invaluable but Facebook provides no official API for bulk comment extraction.

Here are the most common use cases:

  • Sentiment analysis: Feed comments into NLP models to measure positive, negative, or neutral reactions to a product, campaign, or event.
  • Content moderation: Identify toxic, spammy, or policy-violating comments at scale across multiple posts.
  • Competitive research: Monitor comments on competitor posts to understand audience pain points and opportunities.
  • Community management: Export all comments from your brand's reels or videos for reporting and response tracking.
  • Academic research: Study public discourse, language patterns, or viral content dynamics on Facebook.
  • Lead generation: Identify engaged users in niche communities who comment on relevant posts.

What data can Facebook Comment Scraper extract?

πŸ’¬ Comment Data

  • Comment ID Facebook's unique identifier for the comment
  • Comment text full body of the comment
  • Created at ISO 8601 timestamp of when the comment was posted
  • Like count total reactions on the comment

πŸ‘€ Author Data

  • Author ID Facebook user ID
  • Author name display name of the commenter
  • Profile picture URL thumbnail image of the author

πŸ”— Source Metadata

  • Source URL full URL of the scraped post or reel
  • Source ID numeric Facebook content ID
  • Source type reel, post, video, or photo

πŸ“… Run Metadata

  • Scraped at ISO 8601 timestamp of when the record was collected

βš™οΈ How to use Facebook Comment Scraper

Input Options

urls (Array required)

List of Facebook URLs or numeric IDs to scrape comments from.

Input valueWhat it extracts
https://www.facebook.com/reel/123456789All comments from that reel
https://www.facebook.com/watch/?v=123456789All comments from that video
123456789Same as above raw numeric ID works
{
"urls": [
"https://www.facebook.com/reel/813381761171953",
"https://www.facebook.com/watch/?v=123456789",
"987654321"
]
}

⚠️ Share links (https://www.facebook.com/share/p/...) are not supported. Open the post directly in your browser and copy the URL from the address bar instead.

maxResults (Integer optional)

  • Default: 0 (no limit fetches all available comments)
  • Useful for sampling large posts with thousands of comments without incurring unnecessary costs.
{
"urls": ["https://www.facebook.com/reel/813381761171953"],
"maxResults": 500
}

customCookies (Array required for most posts)

A JSON array of browser cookie objects exported from your Facebook session. Without valid cookies, Facebook will either block requests or return no comments for non-public content.

{
"customCookies": [
{ "name": "c_user", "value": "100073931291073" },
{ "name": "xs", "value": "29%3AKUx..." },
{ "name": "datr", "value": "abc123xyz" }
]
}

πŸ” Authentication

Facebook requires an authenticated session to load comments reliably

MethodHow to get itWhen to use
Cookie JSON array (recommended)Export from browser extensionAlways most reliable
  1. Install the Copy Cookies Chrome extension
  2. Log in to facebook.com in your browser
  3. Click the extension icon β†’ Copy as JSON
  4. Paste the result into the customCookies field

Alternatively, use Cookie-Editor: open it on facebook.com, click Export β†’ Export as JSON, and paste the result.

⚠️ Security: Your cookies provide full access to your Facebook account. They are treated as secrets and are never logged, stored, or shared. Use a dedicated Facebook account for scraping if you are concerned about account security.

⚠️ Session expiry: Facebook cookies expire or rotate regularly. If you start seeing empty results or errors, re-export your cookies and update the input.


πŸ“Š Sample Output

Each dataset item represents a single comment or reply:

{
"source": {
"id": "813381761171953",
"url": "https://www.facebook.com/reel/813381761171953",
"type": "reel"
},
"comment": {
"id": "1479283777186556",
"parent_id": null,
"author": {
"id": "100002510632513",
"name": "Rachid Alaoui",
"profile_picture": "https://scontent.ftlm1-1.fna.fbcdn.net/v/..."
},
"text": "Great content, thanks for sharing!",
"created_at": "2026-03-11T15:19:12.000Z",
"like_count": 16,
"reply_count": 3
},
"scraped_at": "2026-03-12T22:07:04.605Z"
}

❓ Frequently Asked Questions

Do I need a Facebook account to use this actor? Yes. Facebook heavily restricts unauthenticated access to comments. You'll need to export cookies from a logged-in browser session and paste them into the customCookies field.

How many comments can I extract for free? Apify gives new users $5 in free credit. Based on typical compute usage, you can expect to extract roughly 5,000–50,000 comments within that budget, depending on post size and number of URLs.

Can I scrape multiple URLs in one run? Yes add as many URLs as you need to the urls array. The actor processes them sequentially, saving state after each URL so a crash or migration doesn't lose progress.

What happens if the run crashes mid-way? The actor saves its progress after every successfully scraped URL. If it's interrupted (crash, migration, abort), it resumes from the next unprocessed URL when re-run no duplicate data.

Why am I getting empty results? The most common cause is expired or missing cookies. Re-export your cookies from the browser and update the customCookies input. Also check that your Facebook account is still logged in and not temporarily restricted.

What URL formats are supported? Reels (/reel/), videos (/watch/?v=), and raw numeric IDs. Share links (/share/p/) are not supported.

Can I use this for private groups? Only if your authenticated account is a member of that group. The actor uses your browser session, so it can access anything your account can see.


πŸ”„ Resumability

The actor saves state after every successfully processed URL. If it crashes, gets migrated, or is manually aborted, it resumes exactly where it left off on the next run no duplicate pushes, no lost progress.

TriggerWhat gets saved
After each URL completesprocessedIds list + currentIndex
Apify migrating eventFull state snapshot
End of runState cleared (clean slate for next run)

🚫 Error Handling

SituationWhat you see in logsWhat to do
Expired or missing cookiesNo valid session requests may be rate-limitedRe-export cookies from your browser and update input
Unsupported URL formatCannot extract Facebook ID from input: ...Use a direct post/reel URL, not a share link
Facebook returns empty responseCould not parse comments from initial responseCheck cookies are valid; try again in a few minutes
Post has 0 commentsTotal comments reported by Facebook: 0Expected no data to collect

🀝 Support & Resources

Get Help

Social Media

🎬 Video & Media

🏠 Real Estate

πŸ› οΈ Developer Tools

πŸ“± Social Media


  • Public Data Access: Only processes publicly available Facebook Ad Library data
  • Rate Limiting: Respects Facebook's service limits and terms of use
  • Data Protection: No storage of personal information or unauthorized data collection
  • Commercial Use: Suitable for business intelligence and research applications