# Facebook Comments Scraper - Reaction Breakdown (`icoe-man/facebook-comments-scraper-old`) Actor

Scrape comments and replies from Facebook posts, videos and reels. Every comment includes all 7 reaction counts and its language. No login or cookies.

- **URL**: https://apify.com/icoe-man/facebook-comments-scraper-old.md
- **Developed by:** [Icoe Man](https://apify.com/icoe-man) (community)
- **Categories:** Social media, Marketing
- **Features:** Limited permissions
- **Stats:** 1 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.75 / 1,000 comments

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Facebook Comments Scraper - Reaction Breakdown

Collect the comments (and optionally the replies) of any public Facebook post, video, reel or photo. Every comment comes with the **full reaction breakdown** (like, love, care, haha, wow, sad, angry) and its **detected language**, ready for sentiment analysis, community moderation, ad-creative feedback or AI datasets.

- Paste post links and get clean, flat JSON, CSV or Excel
- Up to 1,000 posts per run, with replies optional (new posts are collected at roughly 150 an hour, so large batches of new posts take several hours)
- Sort by most relevant, newest or all comments
- No Facebook login, no cookies and no proxies to manage

### Why this one

| Advantage | What it means |
|---|---|
| Full reaction breakdown | Every comment has all 7 reaction counts and its detected language |
| Simple pricing | You pay per comment plus a small fee per post, with no add-on fees |
| Replies when you want them | Turn on **Include replies** to get replies linked to their comment |
| No login or cookies | No Facebook account, cookies or proxies to manage |
| Spend cap | **Maximum cost per run** stops the run cleanly at your limit |

### What you get

```json
{
  "platform": "facebook",
  "type": "comment",
  "id": "1234567890123456",
  "postId": "1657752149053488",
  "postUrl": "https://www.facebook.com/1657752149053488",
  "parentId": null,
  "url": "https://www.facebook.com/1657752149053488?comment_id=1234567890123456",
  "text": "Amazing photo, congratulations to the whole team!",
  "language": "en",
  "createdAt": "2026-10-17T14:13:53.000Z",
  "author": { "id": "100000000000001", "username": "jane.doe", "name": "Jane Doe", "profileUrl": "https://www.facebook.com/jane.doe" },
  "reactionCount": 12,
  "likeCount": 9,
  "reactions": { "like": 9, "love": 2, "care": 0, "haha": 1, "wow": 0, "sad": 0, "angry": 0 },
  "replyCount": 3,
  "mentionedProfileIds": [],
  "hashtags": [],
  "imageUrl": null,
  "imageDescription": null,
  "scrapedAt": "2026-10-17T16:09:00.000Z"
}
```

Replies have `"type": "reply"` and `parentId` set to the comment they answer. Commenter profile photos are not included.

### How to use it

1. Add one or more post URLs. Supported formats include `/posts/…`, `/videos/…`, `/reel/…`, `permalink.php?story_fbid=…`, `photo.php?fbid=…` and `watch/?v=…`. Share links (`/share/…`, fb.watch) are opened when Facebook allows it; if one is skipped, open the post and copy its full address.
2. Set **Max comments per post**. Up to 24 is the fastest.
3. Run it. Comments we collected recently arrive instantly. New posts usually take about a minute each with up to 24 comments (bigger limits take longer), and up to 3 posts are processed in parallel. For large batches of new posts, check that the run's **Timeout** in the run options leaves enough time.

Calling it from an AI agent or with a short timeout? Start the run asynchronously and fetch the dataset when it finishes, or turn on **Previously collected data only** for an instant answer.

### Pricing

Pay only for what you get:

| | Free | Starter | Scale | Business |
|---|---|---|---|---|
| Per 1,000 comments | $1.25 | $1.05 | $0.90 | $0.75 |
| Per post processed | $0.005 | $0.005 | $0.005 | $0.005 |

The per-post fee is charged once per post, even when it has no comments. Posts that are private or deleted are not charged. Fees are charged as data is delivered: the per-post fee comes with a post's first comment, or at the end for a post that has none, so posts that fail before their first comment, can't be collected or are still pending are never charged.

**Example:** 10,000 comments from 200 posts on the Starter plan cost 10,000 × $0.00105 + 200 × $0.005 = **$11.50**.

Use **Maximum cost per run** in the run options to cap your spend. The Actor stops cleanly at that limit.

**Free plan:** you get previously collected comments plus a small live allowance each day (about 5 posts). Any paid Apify plan removes the limit.

### FAQ

#### Is scraping Facebook comments legal?

This Actor collects publicly visible comments only. Personal data is protected by laws such as GDPR, so only collect what you have a legitimate reason to process, and consult your lawyer if unsure.

#### How fresh is the data?

The input form starts with **Reuse data collected within** at 24 hours, so comments we collected in the last day come back instantly and other posts are collected live. API calls that leave the field out use 6 hours. The prefilled example may be answered from data up to 30 days old, so it finishes instantly. Higher values reuse older collected data (up to 720 hours). Lower it (for example to 6) for fresher comments, or set it to 0 to always collect live. If a post cannot be collected live right now (for example because the free plan's daily allowance is used up), you get any comments we collected before, with a note in `OUTPUT`. With 0, such posts are only reported in `OUTPUT`.

#### Can I use it via API, Make, Zapier or n8n?

Yes. Use the Apify API or any Apify integration. Each run's results are in its default dataset, and when the run finishes, `OUTPUT` in the key-value store has a per-post summary.

#### Can I use it from an AI agent or MCP server?

Yes. Connect your agent to the Apify MCP server at mcp.apify.com, or call the Apify API directly. New posts take about a minute each, so start long runs asynchronously and fetch the dataset when the run finishes. For an instant answer, turn on **Previously collected data only** to get just the comments we already collected.

#### Why did a post return fewer comments than it shows?

Facebook's count includes replies and hidden comments, and its **Most relevant** order (the default) shows only a selection of comments. Try **Sort comments by** = **All comments**, and turn on **Include replies** to collect replies too. Replies count toward **Max comments per post**.

#### Why did I get no results?

Common reasons:

- The post is private or deleted, or the link could not be read (open the post and copy its full address).
- The post has no public comments.
- The free plan's daily live allowance is used up and we had no earlier comments for that post.
- **Previously collected data only** is on and we have not collected that post before.
- Your **Maximum cost per run** was reached before the post was processed.

The run's `OUTPUT` record in the key-value store lists a status and a note for every post, so you can see what happened to each one. A `pending` status means the source is still collecting that post, or another request is collecting it right now: it is not charged, so run it again later. `partial` means the run stopped before its timeout with part of it delivered; run it again with a longer timeout to get all of it.

### Related Actors

- [Facebook Posts Scraper - Pages & Date Range](https://apify.com/icoe-man/facebook-posts-scraper)
- [Facebook Reels Scraper - Video URLs & Engagement](https://apify.com/icoe-man/facebook-reels-scraper)
- [Facebook Groups Scraper - Posts by Date](https://apify.com/icoe-man/facebook-groups-scraper)
- [Facebook Posts Search Scraper - Bulk Keywords](https://apify.com/icoe-man/facebook-posts-search-scraper)
- [Instagram Comments Scraper - Profiles & Date Range](https://apify.com/icoe-man/instagram-comments-scraper)
- [TikTok Comments Scraper - Profiles & Date Range](https://apify.com/icoe-man/tiktok-comments-scraper)
- [Social Media Comments Scraper - FB, IG, TikTok, Reddit](https://apify.com/icoe-man/social-media-comments-scraper)
- [Reddit Scraper - Posts & Comment Threads](https://apify.com/icoe-man/reddit-scraper)
- [Reddit Comments Scraper - Full Threads & Depth](https://apify.com/icoe-man/reddit-comments-scraper)

**Something is wrong?** Open an issue in the Issues tab. We usually respond within 24 hours.

# Actor input Schema

## `postUrls` (type: `array`):

Links to public Facebook posts, videos, reels or photos, one per line. Up to 1,000 per run.

## `maxCommentsPerPost` (type: `integer`):

How many comments (and replies, if enabled) to collect per post. Up to 24 is fastest. Each comment is billed, plus a small fee per post.

## `sort` (type: `string`):

Which comments Facebook returns. Most relevant (the default) shows only a selection of comments, so try All comments if a post returns fewer than expected. The dataset is not guaranteed to follow this order: sort by createdAt for a timeline.

## `includeReplies` (type: `boolean`):

Also collect replies to comments. Replies count toward the comment limit.

## `maxDataAgeHours` (type: `integer`):

If we collected these comments within this many hours, you get them instantly at the same price. The form starts at 24; API calls without this field use 6. Higher values reuse older collected data (up to 720). Use 0 to always collect fresh data.

## `cacheOnly` (type: `boolean`):

Return only comments we already collected, without waiting for live collection. Useful for AI agents with short timeouts.

## Actor input object example

```json
{
  "postUrls": [
    "https://www.facebook.com/NASA/posts/1657752149053488"
  ],
  "maxCommentsPerPost": 10,
  "sort": "most_relevant",
  "includeReplies": false,
  "maxDataAgeHours": 24,
  "cacheOnly": false
}
```

# Actor output Schema

## `comments` (type: `string`):

No description

## `summary` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "postUrls": [
        "https://www.facebook.com/NASA/posts/1657752149053488"
    ],
    "maxCommentsPerPost": 10,
    "maxDataAgeHours": 24
};

// Run the Actor and wait for it to finish
const run = await client.actor("icoe-man/facebook-comments-scraper-old").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "postUrls": ["https://www.facebook.com/NASA/posts/1657752149053488"],
    "maxCommentsPerPost": 10,
    "maxDataAgeHours": 24,
}

# Run the Actor and wait for it to finish
run = client.actor("icoe-man/facebook-comments-scraper-old").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "postUrls": [
    "https://www.facebook.com/NASA/posts/1657752149053488"
  ],
  "maxCommentsPerPost": 10,
  "maxDataAgeHours": 24
}' |
apify call icoe-man/facebook-comments-scraper-old --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,icoe-man/facebook-comments-scraper-old"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/uzVtID3P2dUswB3lw/builds/Mu2374kAkZHvCcn5H/openapi.json
