Facebook Comment Scraper
Pricing
Pay per usage
Facebook Comment Scraper
Free to use: Extract comments & threaded replies from any Facebook post : reels, videos, photos & text posts ๐ฌ. Supports bulk URLs, full pagination, reactions, author data & more ๐.
Pricing
Pay per usage
Rating
3.7
(3)
Developer
FlowExtract API
Actor stats
4
Bookmarked
33
Total users
23
Monthly active users
0.23 hours
Issues response
6 days ago
Last modified
Categories
Share
๐ฌ Facebook Comment Scraper Extract Comments from Any Facebook Post
Facebook Comment Scraper extracts comments and threaded replies from any public Facebook content reels, videos, photos, text posts, group posts, and page posts. Just provide your URLs and run. No setup, no login, no browser extensions needed for public content.
For private or restricted posts, you can optionally provide browser cookies to access content that requires authentication.
Perfect for social media researchers, community managers, and marketers who need Facebook comment data without manually scrolling through thousands of posts.
Supported Facebook content types
| Content type | Example URL | Status |
|---|---|---|
| Reels | https://www.facebook.com/reel/123456789 | โ Supported |
| Videos | https://www.facebook.com/watch/?v=123456789 | โ Supported |
| Photos | https://www.facebook.com/photo?fbid=123456789 | โ Supported |
| Photo albums | https://www.facebook.com/photo/?fbid=123&set=a.456 | โ Supported |
| Page posts | https://www.facebook.com/page/posts/pfbid0Bb... | โ Supported |
| Group posts | https://www.facebook.com/groups/.../posts/123456789 | โ Supported |
| Permalink posts | https://www.facebook.com/permalink.php?story_fbid=123 | โ Supported |
| Share links | https://www.facebook.com/share/... | โ Supported |
Why scrape Facebook comments?
Facebook is one of the largest social networks in the world, with billions of 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.
Common use cases:
- Sentiment analysis feed comments into NLP models to measure 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 posts, reels, photos, 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 does it extract?
๐ฌ Comment Data
- Comment ID Facebook's unique identifier
- Comment text full body of the comment
- Created at ISO 8601 timestamp
- Comment URL direct link to the comment on Facebook
- Parent ID ID of the parent comment (for replies;
nullfor top-level comments) - Total reactions combined count across all reaction types
- Reactions breakdown per-type counts (Like, Love, Haha, Wow, Sad, Angry, Care)
- Reply count number of direct replies
- Attachments photos, stickers, or media attached to the comment
- Badges special badges on the commenter's profile (e.g. "Top fan", "Rising fan")
๐ค Author Data
- Author ID, name, profile URL, and profile picture URL
- Gender, verification status, and work info (when available)
๐ Source Metadata
- Source URL the full URL of the scraped content
- Source ID Facebook content identifier
- Source type
reel,video,photo,post, orunknown
๐ Language & Run Metadata
- Source language detected language of the comment (e.g.
en_XX) - Translation type whether the text is original or auto-translated
- 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 to scrape comments from. You can mix different content types in the same run.
{"urls":[{"url": "https://www.facebook.com/photo?fbid=1450353236655661"},{"url": "https://www.facebook.com/humansofnewyork/posts/pfbid0BbKbkisExKGSKuhee9a7i86RwRuMKFC8NSkKStB7CsM3uXJuAAfZLrkcJMXxhH4Yl"},{"url": "https://www.facebook.com/reel/1312736054237897"},{"url": "https://www.facebook.com/watch?v=1673231300789929"}]}
commentsIntentToken (String optional)
Controls how Facebook orders the comments returned. Mirrors the sort options in the Facebook UI.
| Value | Label | Description |
|---|---|---|
RANKED_FILTERED_INTENT_V1 | โญ Most Relevant (default) | Friends' comments and most-engaged comments first |
REVERSE_CHRONOLOGICAL_UNFILTERED_INTENT_V1 | ๐ Newest | All comments sorted chronologically, newest first |
RANKED_UNFILTERED_CHRONOLOGICAL_REPLIES_INTENT_V1 | ๐ฌ All Comments | All comments including lower-engagement ones |
๐ก Tip: Use Most Relevant for engagement analysis. Use Newest for real-time monitoring. Use All Comments for the most complete dataset with no filtering.
fetchReplies (Boolean optional)
Controls whether the actor fetches threaded replies for each comment.
- Default:
falseonly top-level comments are collected truefetches direct replies and nested sub-replies for every comment, including full pagination through all reply pages
{"urls": [{ "url": "https://www.facebook.com/photo?fbid=1450353236655661" }],"fetchReplies": true}
๐ก How limits interact with replies:
maxCommentsPerUrlcontrols how many top-level comments are collected. Replies are always fetched for all collected top-level comments regardless of that limit. For example,maxCommentsPerUrl: 10withfetchReplies: truegives you 10 top-level comments plus all their replies and sub-replies.
โ ๏ธ Enabling reply fetching significantly increases request count and run time, especially on posts with deep reply threads.
maxCommentsPerUrl (Integer optional)
- Default:
10 - Set to
0orfor unlimited fetches all available top-level comments - This limit applies to top-level comments only. Replies are fetched separately when
fetchRepliesis enabled and are not counted toward this limit. - The actor stops paginating for new top-level comments as soon as this limit is reached.
{"urls": [{ "url": "https://www.facebook.com/photo?fbid=1450353236655661" }],"maxCommentsPerUrl": 500,"fetchReplies": true}
customCookies (Array optional)
Not required for public content. The actor handles public posts, reels, photos, and videos without any cookies.
If you need to scrape comments from private groups or login-restricted content, provide a JSON array of browser cookie objects exported from your Facebook session.
{"customCookies": [{ "name": "c_user", "value": "100073931291073" },{ "name": "xs", "value": "29%3AKUx..." },{ "name": "datr", "value": "abc123xyz" }]}
How to export cookies (only needed for private content)
- Install the Copy Cookies Chrome extension
- Log in to
facebook.comin your browser - Click the extension icon โ Copy as JSON
- Paste the result into the
customCookiesfield
Alternatively, use Cookie-Editor: open it on facebook.com, click Export โ Export as JSON, and paste the result.
๐ Cookie Security & Encryption
If you do provide cookies, they are protected by the Apify platform:
- Encrypted at rest using AES-256-GCM with a 2048-bit RSA key unique to your user and this Actor
- Decrypted only inside the Actor no other Actor or user can access them
- Never logged or exposed in the Apify Console UI
- Isolated per user and Actor for complete separation
โ ๏ธ Security: Cookies from a logged-in session grant access to your Facebook account. Use a dedicated account for scraping if you are concerned about account security.
๐ Sample Output
Each dataset item represents a single comment or reply. Replies are distinguished by a non-null parent_id field.
{"source": {"id": "4364570517119853","url": "https://www.facebook.com/reel/4364570517119853","type": "reel"},"comment": {"id": "892296663703975","parent_id": null,"author": {"id": "100004647828036","name": "Sadeer Ayad","profile_picture": "https://scontent.ftlm1-1.fna.fbcdn.net/v/...","url": "https://www.facebook.com/sadeer.ayad.553481","gender": "FEMALE","is_verified": null,"work_info": null},"text": "Don't you dare to move when you hear the music ๐","created_at": "2026-03-11T00:57:18.000Z","created_time_unix": 1773190638,"url": "https://www.facebook.com/reel/4364570517119853/?comment_id=892296663703975","total_reactions": 1600,"reactions": {"Like": 1105,"Haha": 553,"Love": 4,"Sad": 1},"like_count": 1600,"reply_count": 4,"attachments": [],"badges": [],"source_language": "en_XX","translation_type": "ORIGINAL"},"scraped_at": "2026-03-14T10:42:52.848Z"}
Reply example
Replies have a non-null parent_id pointing to their parent comment:
{"source": {"id": "4364570517119853","url": "https://www.facebook.com/reel/4364570517119853","type": "reel"},"comment": {"id": "942208778497508","parent_id": "892296663703975","author": {"id": "61580896441183","name": "James W. Mohan","profile_picture": "https://scontent.ftlm1-1.fna.fbcdn.net/v/...","url": "https://www.facebook.com/profile.php?id=61580896441183","gender": "MALE","is_verified": null,"work_info": null},"text": "Sadeer Ayad or breathe","created_at": "2026-03-11T01:11:04.000Z","created_time_unix": 1773191464,"url": "https://www.facebook.com/reel/4364570517119853/?comment_id=892296663703975&reply_comment_id=942208778497508","total_reactions": 51,"reactions": {"Haha": 41,"Like": 10},"like_count": 51,"reply_count": 3,"source_language": "en_XX","translation_type": "ORIGINAL"},"scraped_at": "2026-03-14T10:42:57.056Z"}
โ Frequently Asked Questions
Do I need a Facebook account to use this actor? No not for public content. Just provide your URLs and run. For private group posts or login-restricted content, you'll need to provide browser cookies from a logged-in session.
What types of Facebook content can I scrape comments from? Got it โ just the updated paragraph text, no file editing needed:
What types of Facebook content can I scrape comments from?
Reels, videos, photos, photo albums, page posts (including pfbid URLs), group posts, permalink posts, and share links (/share/p/, /share/v/, /share/r/) โ basically any Facebook content that has a comment section.
If your URL format isn't working, open an issue on the actor page and we'll look into adding support for it.
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 10,000โ200,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, and you can mix different content types (reels, photos, posts, etc.) in the same run. The actor processes them sequentially, saving state after each URL.
Does the actor fetch replies to comments?
Yes, when fetchReplies is set to true. It fetches direct replies and nested sub-replies with full pagination through all reply pages. Each reply is returned as a separate dataset item with a parent_id referencing its parent comment.
How does maxCommentsPerUrl interact with replies?
maxCommentsPerUrl limits top-level comments only. When fetchReplies is enabled, all replies for the collected top-level comments are fetched regardless of the limit. For example, setting maxCommentsPerUrl: 10 with fetchReplies: true gives you 10 top-level comments plus all their replies.
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? Make sure the post is public. If the content is private, provide browser cookies from an account that can access it. If the problem persists, try running again or opening an Issue
What is the difference between the sort modes?
Most Relevant (default) mirrors Facebook's default feed it prioritises friends' comments and highly-reacted comments. Newest returns all comments in reverse chronological order, ideal for monitoring fresh reactions. All Comments includes lower-engagement comments that Facebook normally filters out, giving the most complete dataset.
Can I use this for private groups?
Yes, but you must provide cookies from an account that is a member of that group via the customCookies input field.
๐ 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.
| Trigger | What gets saved |
|---|---|
| After each URL completes | processedIds list + currentIndex |
Apify migrating event | Full state snapshot |
| End of run | State cleared (clean slate for next run) |
๐ซ Error Handling
| Situation | What you see in logs | What to do |
|---|---|---|
| No session established | No valid session | Try running again; if it persists, provide cookies manually |
| Facebook returns empty response | Could not parse comments from root query response | Check the post is public; try again in a few minutes |
| Post has 0 comments | Total comments reported by Facebook: 0 | Expected no data to collect |
| Private content without cookies | Could not extract feedbackId | Provide cookies from an account that can access the content |
๐ค Support & Resources
Get Help
- ๐ Website: flowextractapi.com
- ๐ง Email: flowextractapi@outlook.com
- ๐ Apify Profile: FlowExtract API
- ๐ฌ GitHub Issues: FlowExtractAPI
Social Media
- ๐ผ LinkedIn: flowextract-api
- ๐ฆ Twitter: @FlowExtractAPI
- ๐ฑ Facebook: flowextractapi
๐ Related Actors by FlowExtract API
๐ฌ Video & Media
- YouTube Transcript Extractor - Extract transcripts with timestamps
- YouTube Scraper Pro - Complete channel and playlist extraction
- Zoom Scraper - Download recordings and transcripts
- Loom Scraper - Loom video and transcript extraction
๐ Real Estate
- Idealista Scraper API - Spanish property data with API
- Idealista Scraper - Real estate listings extractor
๐ ๏ธ Developer Tools
- Screenshot - Fast webpage screenshots
- Ultimate Screenshot - Advanced screenshot tool
- Network Security Scanner - Security vulnerability scanner
๐ฑ Social Media
- Facebook Ads Scraper Pro - Extract Facebook ads data
โ๏ธ Legal & Compliance
- Public Data Access: Only processes publicly available Facebook 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

