# Facebook Page Posts & Comments Scraper - Last 30 Days

**Use case:** 

Collect every post a Facebook page published in the last 30 days, with text, date, reactions by type, comment and share counts, video views, photos and links, plus the top comments on each post with author and reactions. Page details come too. Great for social media monitoring, competitor analysis and engagement reports. Change the pages or the date range to suit your research.

## Input

```json
{
  "startUrls": [
    {
      "url": "https://www.facebook.com/bbcnews"
    },
    {
      "url": "https://www.facebook.com/BoisdaleRestaurants"
    }
  ],
  "includePosts": true,
  "maxPosts": 20,
  "onlyPostsNewerThan": "30 days",
  "scrapeAllPhotos": false,
  "includeComments": true,
  "commentsPerPost": 20,
  "commentsSortBy": "relevant",
  "includeReplies": false
}
```

## Output

```json
{
  "name": {
    "label": "Page"
  },
  "url": {
    "label": "URL",
    "format": "link"
  },
  "category": {
    "label": "Category"
  },
  "followers": {
    "label": "Followers"
  },
  "phone": {
    "label": "Phone"
  },
  "email": {
    "label": "Email"
  },
  "website": {
    "label": "Website",
    "format": "link"
  },
  "address": {
    "label": "Address"
  },
  "rating": {
    "label": "Rating"
  },
  "openStatus": {
    "label": "Open now"
  },
  "verified": {
    "label": "Verified"
  },
  "createdAt": {
    "label": "Created"
  },
  "adsRunning": {
    "label": "Running ads"
  },
  "pageId": {
    "label": "Page ID"
  }
}
```

## About this Actor

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