# 历史帖子回填

**Use case:** 

轻松回填群组历史帖子：按游标分块抓取，支持断点续跑，中断后也能继续，不必从头再来。每条结果都包含日期、文本、稳定链接和图片，并以 JSON 输出，适合归档、分析或迁移，省时又省心。

## Input

```json
{
  "groupUrls": [
    "https://www.facebook.com/groups/1564552680458634/"
  ],
  "maxGroupsPerRun": 10,
  "maxPostsPerGroup": 100,
  "sortMode": "CHRONOLOGICAL",
  "expandAllPhotos": true,
  "includeRawPayload": false,
  "startCursor": "",
  "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`).
