# 小组帖子与完整照片

**Use case:** 

无需手动逐张展开，一键抓取公开群组帖子，并完整恢复相册网格里 +N 隐藏的全部照片。每个帖子输出一行结构化 JSON，包含全部图片链接、正文与基础元数据，方便分析、存档或二次开发。适合舆情监测、素材整理与社区研究，让公开内容采集更高效、更完整。

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