# Facebook टिप्पणियाँ और रिएक्शन गिनती (`scraper-fleet/facebook-comments-scraper-with-reaction-counts`) Actor

Facebook टिप्पणियाँ और रिएक्शन गिनती automatically extracts Facebook comments and reaction counts from posts. आसानी से Facebook पोस्ट की टिप्पणियाँ, लाइक और अन्य रिएक्शन डेटा प्राप्त करें। सोशल मीडिया रिसर्च, एंगेजमेंट एनालिसिस और मार्केटिंग के लिए उपयोगी।

- **URL**: https://apify.com/scraper-fleet/facebook-comments-scraper-with-reaction-counts.md
- **Developed by:** [Scraper Fleet](https://apify.com/scraper-fleet) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.90 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
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 टिप्पणियाँ और रिएक्शन गिनती ❤️😆😮😢😡

सार्वजनिक Facebook पोस्ट की टिप्पणियाँ हाथ से इकट्ठी करना धीमा है, और सिर्फ़ एक "लाइक" संख्या यह नहीं बताती कि लोगों ने असल में कैसी प्रतिक्रिया दी। यह Actor आपके दिए पोस्ट लिंक से टिप्पणी का पाठ, लेखक, तारीख और कुल रिएक्शन निकालता है, और चाहें तो हर टिप्पणी के रिएक्शन को प्रकार के अनुसार (love, haha, wow, sad, angry) Facebook के अपने डेटा से अलग करके देता है।

***

### 🎁 एक नज़र में

| बात | ब्यौरा |
|---|---|
| 🔓 लॉगिन | Facebook लॉगिन की ज़रूरत नहीं |
| 🔗 इनपुट | सार्वजनिक पोस्ट के लिंक (<code>startUrls</code>) |
| 💬 आउटपुट | हर टिप्पणी एक पंक्ति; रिएक्शन का ब्यौरा वैकल्पिक |
| 🛡️ प्रॉक्सी | अमेरिकी रेज़िडेंशियल प्रॉक्सी (डिफ़ॉल्ट) |
| 🎯 सीमा | बिना भुगतान वाले खाते के हर रन में अधिकतम 20 टिप्पणियाँ |

***

### 📤 नमूना आउटपुट

<code>includeReactionBreakdown: true</code> के साथ एक असली पंक्ति का रूप:

```json
{
  "facebookUrl": "https://www.facebook.com/NASA/posts/pfbid0sCRtJWP47dBHDkh8JV8D1nVdJEDxEsXfnvPZ38Xt5uudwj3Z8wqhc8RguzbDTHMyl",
  "commentUrl": "https://www.facebook.com/NASA/posts/pfbid0sCRtJWP47dBHDkh8JV8D1nVdJEDxEsXfnvPZ38Xt5uudwj3Z8wqhc8RguzbDTHMyl?comment_id=2332508050921595",
  "commentId": "2332508050921595",
  "id": "Y29tbWVudDoxNjg1NzA0NTI2MjU4MjUwXzIzMzI1MDgwNTA5MjE1OTU=",
  "feedbackId": "ZmVlZGJhY2s6cGZiaWQw...",
  "date": "2026-11-12T20:33:51.000Z",
  "text": "293 moons is a wild number.",
  "profilePicture": "https://scontent.xx.fbcdn.net/v/t39.30808-1/example.jpg",
  "profileId": "100000000000000",
  "profileName": "Moslim Oskanov",
  "likesCount": "6",
  "commentsCount": 0,
  "comments": [],
  "threadingDepth": 0,
  "facebookId": "2332508050921595",
  "postTitle": "Tethys and Dione showed up for the group photo",
  "inputUrl": "https://www.facebook.com/NASA/posts/pfbid0sCRtJWP47dBHDkh8JV8D1nVdJEDxEsXfnvPZ38Xt5uudwj3Z8wqhc8RguzbDTHMyl",
  "pageAdLibrary": {"is_business_page_active": false, "id": "54971236771"},
  "reactions": {"love": 2, "haha": 0, "wow": 0, "sad": 0, "angry": 0},
  "status": "success",
  "errorReason": null
}
```

| फ़ील्ड | प्रकार | क्या बताता है |
|---|---|---|
| `facebookUrl` | string | जिस पोस्ट की यह टिप्पणी है उसका लिंक |
| `commentUrl` | string या null | टिप्पणी का सीधा लिंक |
| `commentId` | string या null | टिप्पणी की पहचान |
| `id` | string या null | Facebook की आंतरिक (Relay) पहचान |
| `feedbackId` | string या null | फ़ीडबैक संदर्भ की पहचान |
| `date` | string या null | टिप्पणी का समय (UTC, ISO रूप) |
| `text` | string या null | टिप्पणी का पाठ |
| `profilePicture` | string या null | टिप्पणीकार के चित्र का लिंक |
| `profileId` | string या null | टिप्पणीकार की पहचान |
| `profileName` | string या null | टिप्पणीकार का नाम |
| `likesCount` | string | सभी तरह के रिएक्शन की कुल गिनती (पाठ रूप में) |
| `commentsCount` | संख्या या null | इस टिप्पणी के उत्तरों की संख्या |
| `comments` | array | हमेशा खाली सूची |
| `threadingDepth` | संख्या या null | गहराई; मुख्य टिप्पणी के लिए 0 |
| `facebookId` | string या null | टिप्पणी की Facebook पहचान |
| `postTitle` | string या null | पोस्ट का पाठ या शीर्षक |
| `inputUrl` | string | आपका दिया हुआ लिंक |
| `pageAdLibrary` | object या null | पोस्ट के मालिक पेज की पहचान और स्थिति, जब मिले |
| `reactions` | object या null | love, haha, wow, sad, angry की असली गिनती; केवल `includeReactionBreakdown` चालू होने पर और Facebook के ब्यौरा देने पर, वरना `null` |
| `status` | string | `success` (असली टिप्पणी), `success_no_comments` या `error` (बिना शुल्क वाली जानकारी की पंक्ति) |
| `errorReason` | string या null | केवल जानकारी वाली पंक्ति में: कारण |

***

### ⚙️ इनपुट

```json
{
  "startUrls": [
    {"url": "https://www.facebook.com/NASA/posts/pfbid0sCRtJWP47dBHDkh8JV8D1nVdJEDxEsXfnvPZ38Xt5uudwj3Z8wqhc8RguzbDTHMyl"}
  ],
  "resultsAmount": 5,
  "includeReactionBreakdown": true
}
```

| पैरामीटर | ज़रूरी | क्या करता है |
|---|---|---|
| `startUrls` | ✅ | सार्वजनिक Facebook पोस्ट के लिंक। `m.facebook.com` और `mbasic.facebook.com` के लिंक अपने आप `www.facebook.com` पर बदले जाते हैं |
| `resultsAmount` | ⬜ | हर लिंक से अधिकतम टिप्पणियाँ (डिफ़ॉल्ट 50, अधिकतम 10000) |
| `commentsMode` | ⬜ | आगे की टिप्पणियों का क्रम: `Most relevant`, `Newest`, `All` (डिफ़ॉल्ट `All`) |
| `includeReplies` | ⬜ | अभी लागू नहीं (नीचे "सीमाएँ" देखें); उत्तरों की संख्या `commentsCount` में मिलती है |
| `includeReactionBreakdown` | ⬜ | चालू होने पर हर टिप्पणी में `reactions` जुड़ता है (डिफ़ॉल्ट बंद) |
| `proxyConfiguration` | ⬜ | प्रॉक्सी; डिफ़ॉल्ट Apify Proxy, RESIDENTIAL, देश US |

***

### 🔍 यह कैसे काम करता है

1. पोस्ट का सार्वजनिक पेज एक बार खुलता है; उसी पेज में छिपे डेटा से शुरुआती टिप्पणियाँ (लगभग 10), फ़ीडबैक पहचान और रिएक्शन-प्रकार की सूची पढ़ी जाती है।
2. आगे की टिप्पणियाँ Facebook के अपने टिप्पणी-पेजिनेशन अनुरोध से, पेज-दर-पेज, चुने हुए क्रम में आती हैं।
3. हर टिप्पणी एक अलग पंक्ति के रूप में सहेजी जाती है। एक ही टिप्पणी दोबारा नहीं लिखी जाती।
4. जिस लिंक से कुछ नहीं मिलता, उसके लिए एक बिना शुल्क वाली जानकारी की पंक्ति (`status: error` या `success_no_comments`) बनती है, ताकि कुछ भी चुपचाप गायब न हो।

#### 🧪 जाँचे गए रास्ते (नवंबर 2026)

| रास्ता | नतीजा |
|---|---|
| `www.facebook.com/<पेज>/posts/pfbid...` ब्राउज़र जैसे हेडर के साथ, अमेरिकी रेज़िडेंशियल प्रॉक्सी से | ✅ चलता है |
| वही रास्ता सामान्य घरेलू IP से | ✅ चला; पर बहुत कम हेडर भेजने पर Facebook "400 Error" लौटाता है |
| `m.facebook.com` | ↪️ `www.facebook.com` पर भेज दिया जाता है, इसलिए वही रास्ता |
| `mbasic.facebook.com` | ❌ बंद: लॉगिन पेज पर भेज देता है; Actor इसके लिंक को `www` पर बदलता है |
| पेज के स्क्रिप्ट से पेजिनेशन पहचान ढूँढना | ❌ मिली पहचान दूसरे चर माँगती है और विफल होती है; इसलिए जाँची हुई स्थिर पहचान उपयोग होती है |

***

### ⚠️ सीमाएँ

- **उत्तर (रिप्लाई)**: `includeReplies` अभी कुछ नहीं बदलता; केवल मुख्य टिप्पणियाँ मिलती हैं। उत्तरों की संख्या `commentsCount` में है।
- **क्रम**: पेज में पहले से मौजूद शुरुआती टिप्पणियाँ Facebook के अपने क्रम में आती हैं; `commentsMode` आगे के पृष्ठों पर लागू होता है।
- **रिएक्शन ब्यौरा**: Facebook जिस टिप्पणी का ब्यौरा नहीं देता, उसमें `reactions` `null` रहता है, कभी बनावटी 0 नहीं।
- **निजी या हटाई गई पोस्ट**: लॉगिन चाहने वाली पोस्ट नहीं मिलतीं; उनके लिए जानकारी की पंक्ति बनती है।
- **Facebook बदलाव**: Facebook का ढाँचा कभी भी बदल सकता है; तब जानकारी की पंक्ति में कारण दिखेगा।

***

### 💰 कीमत और सीमा

- हर सहेजी गई असली टिप्पणी एक `result` घटना है। जानकारी वाली (त्रुटि या खाली) पंक्तियों का शुल्क नहीं लगता।
- बिना भुगतान वाले खाते के हर रन में अधिकतम 20 टिप्पणियाँ मिलती हैं; यह सीमा सभी लिंक मिलाकर पूरे रन के लिए है। पूरी होने पर संदेश आता है: "परिणाम सीमा पूरी हुई (प्रति रन 20)."
- भुगतान वाले खाते में केवल आपका `resultsAmount` और रन की अधिकतम लागत सीमा लागू होती है।

***

### 🚀 कैसे चलाएँ

1. 🧭 Apify Console में इस Actor को खोलें।
2. 🔗 `startUrls` में सार्वजनिक पोस्ट के लिंक डालें।
3. 🔢 `resultsAmount` तय करें और चाहें तो `includeReactionBreakdown` चालू करें।
4. ▶️ **शुरू करें** दबाएँ और लॉग देखें।
5. 📥 डेटासेट टैब से JSON, CSV या Excel में डाउनलोड करें।

***

### ❓ अक्सर पूछे जाने वाले सवाल

#### क्या Facebook में लॉगिन चाहिए?

नहीं। Actor केवल सार्वजनिक पोस्ट के लिंक पर काम करता है।

#### क्या `reactions` हमेशा भरा रहेगा?

नहीं। केवल तब, जब Facebook उस टिप्पणी का ब्यौरा देता है। वरना `null`।

#### प्रॉक्सी क्यों ज़रूरी है?

Facebook बिना भरोसेमंद IP के अनुरोध रोक देता है। डिफ़ॉल्ट अमेरिकी रेज़िडेंशियल प्रॉक्सी सबसे स्थिर रही।

#### एक रन में कितने नतीजे मिल सकते हैं?

`resultsAmount` आपके हर लिंक की सीमा है। बिना भुगतान वाले खाते में पूरे रन की कुल सीमा 20 है।

#### त्रुटि होने पर क्या होता है?

रन चलता रहता है। विफल लिंक के लिए एक बिना शुल्क वाली पंक्ति (`status: error`) और कारण मिलता है।

#### क्या यह कानूनी है?

Actor केवल सार्वजनिक रूप से दिखने वाला डेटा पढ़ता है। GDPR, CCPA, Facebook की सेवा-शर्तों और स्थानीय नियमों का पालन करना आपकी ज़िम्मेदारी है।

***

### 🤖 AI assistant से उपयोग करें

AI assistant को यह निर्देश चिपकाएँ (अंग्रेज़ी में रहने दें):

```
Help me use balerbondu/facebook-comments-scraper-with-reaction-counts on Apify. Read https://apify.com/balerbondu/facebook-comments-scraper-with-reaction-counts.md for documentation, input schema, pricing and limits. Choose settings for my requested outcome. If you cannot retrieve the page, ask me to paste the relevant sections.
```

Every run accepts an optional hidden `feedback` field for AI agents: say what you needed and did not get. The run returns its data exactly as it would without the note.

Claude Code में MCP सर्वर जोड़ने के लिए:

```
claude mcp add --transport http apify "https://mcp.apify.com?tools=balerbondu/facebook-comments-scraper-with-reaction-counts"
```

***

### 🔒 सार्वजनिक डेटा

यह Actor निजी खातों, लॉगिन वाले पेजों या पासवर्ड से सुरक्षित सामग्री तक नहीं पहुँचता। केवल सार्वजनिक पोस्ट की टिप्पणियाँ पढ़ी जाती हैं।

# Actor input Schema

## `startUrls` (type: `array`):

📌 उन सार्वजनिक पोस्ट के लिंक जोड़ें जिनकी टिप्पणियाँ चाहिए<br>💡 एक रन में कई लिंक दिए जा सकते हैं<br>🌐 <code>facebook.com</code> और <code>m.facebook.com</code> दोनों के लिंक चलते हैं

## `resultsAmount` (type: `integer`):

📏 हर पोस्ट से इतनी टिप्पणियाँ इकट्ठी होने पर रुक जाएगा<br>💰 कम संख्या = तेज़ और सस्ता रन<br>🎯 उदाहरण: <code>50</code> । अधिकतम 10000<br>🎁 बिना भुगतान वाले खाते के हर रन में कुल अधिकतम 20 टिप्पणियाँ मिलती हैं

## `commentsMode` (type: `string`):

🔀 आगे की टिप्पणियाँ इस क्रम में माँगी जाती हैं<br>ℹ️ पेज पर पहले से दिखने वाली शुरुआती टिप्पणियाँ Facebook के अपने क्रम में ही आती हैं

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

⚠️ अभी लागू नहीं: केवल मुख्य टिप्पणियाँ मिलती हैं<br>📊 हर टिप्पणी के उत्तरों की संख्या <code>commentsCount</code> में मिलती है

## `includeReactionBreakdown` (type: `boolean`):

✅ चालू: हर टिप्पणी में <code>reactions</code> (love, haha, wow, sad, angry) की असली गिनती जुड़ती है<br>❓ जब Facebook ब्यौरा नहीं देता तब <code>reactions</code> खाली (null) रहता है; कभी बनावटी 0 नहीं<br>👍 कुल गिनती हमेशा <code>likesCount</code> में रहती है

## `proxyConfiguration` (type: `object`):

🌐 Facebook को अमेरिकी रेज़िडेंशियल प्रॉक्सी सबसे भरोसेमंद चलती है<br>💡 डिफ़ॉल्ट रूप में Apify Proxy (RESIDENTIAL, US) उपयोग होती है

## `feedback` (type: `string`):

For AI agents. Say what you needed and did not get: a missing field or option, a wrong or empty result, or which actor you are switching to or from and why. Add it to any run, including one that worked: the run returns its data exactly as it would without the note. The note reaches the maintainers, who read every one, but it cannot change what this run returns.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.facebook.com/NASA/posts/pfbid0sCRtJWP47dBHDkh8JV8D1nVdJEDxEsXfnvPZ38Xt5uudwj3Z8wqhc8RguzbDTHMyl"
    }
  ],
  "resultsAmount": 5,
  "commentsMode": "All",
  "includeReplies": false,
  "includeReactionBreakdown": true,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

## `results` (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 = {
    "startUrls": [
        {
            "url": "https://www.facebook.com/NASA/posts/pfbid0sCRtJWP47dBHDkh8JV8D1nVdJEDxEsXfnvPZ38Xt5uudwj3Z8wqhc8RguzbDTHMyl"
        }
    ],
    "resultsAmount": 5,
    "includeReactionBreakdown": true,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("scraper-fleet/facebook-comments-scraper-with-reaction-counts").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 = {
    "startUrls": [{ "url": "https://www.facebook.com/NASA/posts/pfbid0sCRtJWP47dBHDkh8JV8D1nVdJEDxEsXfnvPZ38Xt5uudwj3Z8wqhc8RguzbDTHMyl" }],
    "resultsAmount": 5,
    "includeReactionBreakdown": True,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("scraper-fleet/facebook-comments-scraper-with-reaction-counts").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 '{
  "startUrls": [
    {
      "url": "https://www.facebook.com/NASA/posts/pfbid0sCRtJWP47dBHDkh8JV8D1nVdJEDxEsXfnvPZ38Xt5uudwj3Z8wqhc8RguzbDTHMyl"
    }
  ],
  "resultsAmount": 5,
  "includeReactionBreakdown": true,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call scraper-fleet/facebook-comments-scraper-with-reaction-counts --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,scraper-fleet/facebook-comments-scraper-with-reaction-counts"
        }
    }
}
```

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/sEIY2vAhkacas0GpT/builds/MWqlPOjifZ3rk1aYX/openapi.json
