# 分析竞争对手 Facebook 评论

**Use case:** 

从竞争对手、品牌或营销活动帖子中采集公开评论，比较多个帖子的作者、时间、互动和回复线程，并导出每条评论一行。无需登录或 Cookie。BRONZE 及以上每 1000 条评论 $1.20。

## 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": "评论链接",
    "format": "string"
  },
  "author_name": {
    "label": "作者名称",
    "format": "string"
  },
  "raw_text": {
    "label": "评论正文",
    "format": "string"
  },
  "created_at": {
    "label": "创建时间",
    "format": "string"
  },
  "reactions": {
    "label": "互动总数",
    "format": "integer"
  },
  "reply_count": {
    "label": "回复数",
    "format": "integer"
  },
  "depth": {
    "label": "嵌套深度",
    "format": "integer"
  },
  "parent_comment_id": {
    "label": "父评论 ID",
    "format": "string"
  },
  "post_text": {
    "label": "帖子正文",
    "format": "string"
  }
}
```

## How it works

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

The Facebook 公开评论抓取器 Actor is ready to run with the inputs already set for "分析竞争对手 Facebook 评论". [Sign up or log in](https://console.apify.com/create-task-from-example/P01g07C8j2mZZn1Yf) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "分析竞争对手 Facebook 评论" task

The Facebook 公开评论抓取器 Actor will start running based on the input automatically. You can also change all the input fields, like 帖子链接, 每个帖子最大评论数, and more, to match your specific use case.

### 3. Receive the "分析竞争对手 Facebook 评论" 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 评论链接, 作者名称, 评论正文, 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 "分析竞争对手 Facebook 评论" task via API](https://apify.com/spbotdel/facebook-comments-cn.md).

## About this Actor

This example demonstrates how to use [Facebook 公开评论抓取器](https://apify.com/spbotdel/facebook-comments-cn.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/spbotdel/facebook-comments-cn.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-cn.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`).
