# 最新 Facebook 公开小组帖子

**Use case:** 

轻松采集公开 Facebook 群组的最新帖子，一键获取正文、发布时间、作者与互动数据，连被折叠的 +N 照片也能完整恢复。结果支持 JSON 导出，也可通过 API 接入你的数据管道，快速搭建舆情监控、线索发现与内容分析。无需维护爬虫，按任务运行即取即用，适合品牌监测、社群运营与市场研究。

## Input

```json
{
  "groupUrls": [
    "https://www.facebook.com/groups/1564552680458634/"
  ],
  "maxGroupsPerRun": 10,
  "maxPostsPerGroup": 30,
  "sortMode": "CHRONOLOGICAL",
  "expandAllPhotos": true,
  "includeRawPayload": false,
  "paginationMode": "ranked_snapshot",
  "maxCandidates": 0,
  "maxPages": 0,
  "bootstrapRetries": 4,
  "graphqlPageRetries": 2,
  "proxyCountry": "US",
  "mediaSetRetries": 1,
  "mediaSetRetryDelayMs": 800,
  "mediaExpansionConcurrency": 3,
  "mediaExpansionAdaptive": true,
  "mediaDeferredRetry": true,
  "mediaDeferredRetryConcurrency": 2,
  "mediaDeferredRetryExtraRetries": 2,
  "mediaDeferredRetryDelayMs": 1500,
  "debug": false,
  "discoverBundles": false
}
```

## Output

```json
{
  "rank": {
    "label": "Rank",
    "format": "integer"
  },
  "created_at": {
    "label": "Created",
    "format": "string"
  },
  "source_post_id": {
    "label": "Post ID",
    "format": "string"
  },
  "raw_text": {
    "label": "Text",
    "format": "string"
  },
  "text_source": {
    "label": "Text source",
    "format": "string"
  },
  "text_missing_reason": {
    "label": "Text missing reason",
    "format": "string"
  },
  "author": {
    "label": "Author",
    "format": "object"
  },
  "media_preview_count": {
    "label": "Preview photos",
    "format": "integer"
  },
  "media_expanded_count": {
    "label": "Expanded photos",
    "format": "integer"
  },
  "media_plus_n_risk": {
    "label": "+N risk",
    "format": "boolean"
  },
  "media_review_severity": {
    "label": "Media review",
    "format": "string"
  },
  "media_completeness": {
    "label": "Media status",
    "format": "string"
  },
  "media_deferred_retry": {
    "label": "Deferred retry",
    "format": "object"
  },
  "source_url": {
    "label": "Post URL",
    "format": "string"
  }
}
```

## About this Actor

This example demonstrates how to use [Facebook 公开小组帖子与完整照片集抓取](https://apify.com/spbotdel/facebook-group-posts-cn.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/spbotdel/facebook-group-posts-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-group-posts-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`).
