# Backfill Facebook Group Posts by Date

**Use case:** 

Backfill public Facebook group posts and comments for a specific date range. Choose newer and older cutoffs, preserve authors, reactions, media and stable URLs, then enrich matching posts with public comments and replies. No cookies. From $3 per 1,000 posts plus $1 per 1,000 comments.

## Input

```json
{
  "startUrls": [
    {
      "url": "https://www.facebook.com/groups/2333220550043074/"
    }
  ],
  "maxPostsPerGroup": 30,
  "sortMode": "CHRONOLOGICAL",
  "onlyPostsNewerThan": "30 days",
  "onlyPostsOlderThan": "1 day",
  "searchMode": "LOCAL",
  "searchMaxPostsPerSurface": 300,
  "maxSearchResults": 100,
  "minComments": 0,
  "minReactions": 0,
  "commentsMode": "full",
  "maxCommentsPerPost": 20,
  "includeReplies": true,
  "maxReplyThreadsPerPost": 10,
  "maxRepliesPerPost": 20,
  "commentsConcurrency": 5,
  "commentsSortOrder": "MOST_RELEVANT",
  "unionSorts": true,
  "minCommentReactions": 0,
  "includePostTextInCommentRows": false,
  "commentsOutput": "nested",
  "proxyTier": "auto",
  "proxyCountry": "US",
  "failOnEmpty": false
}
```

## Output

```json
{
  "source_url": {
    "label": "Post URL",
    "format": "string"
  },
  "created_at": {
    "label": "Created",
    "format": "string"
  },
  "raw_text": {
    "label": "Post text",
    "format": "string"
  },
  "author": {
    "label": "Author",
    "format": "object"
  },
  "stats": {
    "label": "Stats",
    "format": "object"
  },
  "comments_collected": {
    "label": "Comments",
    "format": "integer"
  },
  "comments_announced": {
    "label": "Announced",
    "format": "integer"
  },
  "comments_coverage_percent": {
    "label": "Coverage %",
    "format": "number"
  },
  "comments_blocked": {
    "label": "Comments status",
    "format": "string"
  },
  "comments": {
    "label": "Comment rows",
    "format": "array"
  }
}
```

## How it works

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

The Facebook Posts & Comments Scraper - Groups/Pages Actor is ready to run with the inputs already set for "Backfill Facebook Group Posts by Date". [Sign up or log in](https://console.apify.com/create-task-from-example/AjoJbArxC9ZiyZBUg) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Backfill Facebook Group Posts by Date" task

The Facebook Posts & Comments Scraper - Groups/Pages Actor will start running based on the input automatically. You can also change all the input fields, like facebook urls, max posts per surface, and more, to match your specific use case.

### 3. Receive the "Backfill Facebook Group Posts by Date" 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 post url, created, post 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 "Backfill Facebook Group Posts by Date" task via API](https://apify.com/spbotdel/facebook-group-posts-comments-scraper.md).

## About this Actor

This example demonstrates how to use [Facebook Posts & Comments Scraper - Groups/Pages](https://apify.com/spbotdel/facebook-group-posts-comments-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/spbotdel/facebook-group-posts-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-group-posts-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`).
