# Analyze competitor Facebook comments

**Use case:** 

Collect public comments from competitor, brand or campaign posts for social listening. Compare text, authors, timestamps, reactions and reply threads across multiple post URLs in one run, then export one structured row per comment to JSON, CSV or Excel. No login or cookies. From $1.20 per 1,000 comments on BRONZE+.

## Input

```json
{
  "postUrls": [
    "https://www.facebook.com/humansofnewyork/posts/pfbid0BbKbkisExKGSKuhee9a7i86RwRuMKFC8NSkKStB7CsM3uXJuAAfZLrkcJMXxhH4Yl",
    "https://www.facebook.com/story.php?story_fbid=2001486937181800&id=212952699368575"
  ],
  "maxCommentsPerPost": 20,
  "maxPostsPerRun": 2,
  "maxConcurrency": 2,
  "queryMode": "FRESH_LIST",
  "unionSorts": false,
  "commentsSortOrder": "MOST_RELEVANT",
  "failOnEmpty": false,
  "includePostText": true,
  "includeReplies": true,
  "maxReplyThreadsPerPost": 5,
  "maxRepliesPerPost": 10,
  "pageDelayMs": 1000,
  "maxPagesPerPost": 4,
  "introDelayMs": 1500,
  "proxyCountry": "US",
  "proxyTier": "auto",
  "proxyGroups": [
    "RESIDENTIAL"
  ],
  "minCommentsPerPost": 0,
  "startCursorByPost": {}
}
```

## Output

```json
{
  "comment_url": {
    "label": "Comment URL",
    "format": "string"
  },
  "author_name": {
    "label": "Author",
    "format": "string"
  },
  "raw_text": {
    "label": "Comment text",
    "format": "string"
  },
  "created_at": {
    "label": "Created at",
    "format": "string"
  },
  "reactions": {
    "label": "Reactions",
    "format": "integer"
  },
  "reply_count": {
    "label": "Replies",
    "format": "integer"
  },
  "depth": {
    "label": "Depth",
    "format": "integer"
  },
  "parent_comment_id": {
    "label": "Parent comment ID",
    "format": "string"
  },
  "post_text": {
    "label": "Post text",
    "format": "string"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Facebook Post Comments Scraper Actor is ready to run with the inputs already set for "Analyze competitor Facebook comments". [Sign up or log in](https://console.apify.com/create-task-from-example/LFQ5GeYpC4BBEGGVd) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Analyze competitor Facebook comments" task

The Facebook Post Comments Scraper Actor will start running based on the input automatically. You can also change all the input fields, like post urls, max comments per post, and more, to match your specific use case.

### 3. Receive the "Analyze competitor Facebook comments" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as comment url, author, comment text, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Analyze competitor Facebook comments" task via API](https://apify.com/spbotdel/facebook-comments-scraper.md).

## About this Actor

This example demonstrates how to use [Facebook Post Comments Scraper](https://apify.com/spbotdel/facebook-comments-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/spbotdel/facebook-comments-scraper.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

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 full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/spbotdel/facebook-comments-scraper.md

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`).
