# Facebook Page Posts Monitor - Public Pages, No Login (`sonic_scraper/facebook-page-posts-monitor`) Actor

Facebook Page posts monitor for public Pages. Get visible post links, text snippets, images, outbound links and reaction, comment and share counts where exposed, with Page metadata fallback and per-Page diagnostics. No login required; cookie optional.

- **URL**: https://apify.com/sonic_scraper/facebook-page-posts-monitor.md
- **Developed by:** [Group Oject](https://apify.com/sonic_scraper) (community)
- **Categories:** Social media, Marketing, Automation
- **Features:** Limited permissions
- **Stats:** 5 total users, 0 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.10 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

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 examples already wired to this Actor's own input schema, see the [API](#api) section below.

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

# README

## Facebook Page Posts Monitor - Public Page Posts & Engagement

Check a list of public Facebook Pages in one run and export the post links, text snippets, images, external links and engagement counts that Facebook exposes on each Page. If Facebook shows no posts to a logged-out visitor, you still get a Page metadata row (name, ID, description, image) instead of an empty result. Optional: add your own Cookie header for better coverage.

### What can Facebook Page Posts Monitor do?

- **Check many public Pages per run** from Page URLs or handles (paste one per line).
- **Extract visible posts**: post URL and ID, publish time, text snippet, image and video URLs, outbound links.
- **Collect engagement signals** where Facebook includes them: reactions, comments and shares counts.
- **Fall back to Page metadata** (name, Page ID, description, cover image) when posts are not exposed, so every Page returns something you can track.
- **Report diagnostics**: for each Page the run records the HTTP status, whether Facebook returned a login or checkpoint page, and how many posts were found.
- **Use your own session (optional)**: paste a Cookie header from an account you are allowed to use, and route requests through Apify Proxy.

Good for lightweight brand and competitor Page checks, social listening exports, and quick audits of which Pages are active.

### What data can I extract?

| Field | Description |
|---|---|
| `pageUrl`, `pageName`, `pageId` | The Page you supplied, its name and numeric ID when available |
| `postId`, `postUrl` | Post identifier and permalink |
| `text` | Text snippet around the post, or the Page description for metadata rows |
| `publishedAt` | Post time (ISO 8601) when Facebook exposes it |
| `imageUrl`, `videoUrl` | Media URLs near the post |
| `externalLinks` | Non-Facebook links found in the post area (up to 20) |
| `reactionsCount`, `commentsCount`, `sharesCount` | Engagement counts when exposed, otherwise `null` |
| `extractionMethod` | `embedded_json` for post rows, `meta_fallback` for Page metadata rows |
| `fetchedAt` | Collection time |

#### Output example

```json
{
  "pageUrl": "https://www.facebook.com/examplebrand",
  "pageName": "Example Brand",
  "pageId": "100064000000000",
  "postId": "pfbid0ExamplePostId",
  "postUrl": "https://www.facebook.com/examplebrand/posts/pfbid0ExamplePostId",
  "text": "Our autumn collection is live. Free shipping this week only...",
  "publishedAt": "2026-10-23T14:05:00.000Z",
  "imageUrl": "https://scontent.example.fbcdn.net/v/t39.30808-6/example.jpg",
  "videoUrl": null,
  "externalLinks": ["https://shop.example.com/autumn"],
  "reactionsCount": 312,
  "commentsCount": 41,
  "sharesCount": 18,
  "extractionMethod": "embedded_json",
  "fetchedAt": "2026-10-25T00:56:44.210Z"
}
```

### How much does it cost?

- **$3.00 per 1,000 rows** ($0.003 per post or Page metadata row)
- **$0.00005 per Actor start** (per GB of memory)

Checking 20 Pages with up to 25 rows each costs at most about $1.50. Check the Pricing tab for current rates.

### How to use it

1. Paste Facebook Page URLs or handles into **Page URLs** (or one per line in the text box).
2. Set `maxPostsPerPage` (default 25).
3. Optional: add Apify Proxy, and a Cookie header from your own account for Pages that require login.
4. Click **Start** and export the dataset as CSV, Excel or JSON. Review `SUMMARY` for per-Page diagnostics.
5. To monitor over time, save the input as a task and schedule it. Compare `postId` values between runs to spot new posts.

#### Input example

```json
{
  "pageUrls": ["https://www.facebook.com/nasa", "https://www.facebook.com/natgeo"],
  "maxPostsPerPage": 25,
  "dedupe": true,
  "requestDelayMs": 1000,
  "maxConcurrency": 2,
  "proxyConfiguration": { "useApifyProxy": true }
}
```

### Input reference

| Field | Default | Notes |
|---|---|---|
| `pageUrls` / `pageUrlsText` | - | Page URLs or handles |
| `maxPostsPerPage` | 25 | Visible post rows kept per Page |
| `cookie` | - | Optional Cookie header from your own Facebook account |
| `dedupe` | true | Remove duplicate post URLs across Pages |
| `requestDelayMs` / `maxConcurrency` | 1000 / 2 | Keep modest for Facebook |
| `proxyConfiguration` | none | Apify Proxy recommended |

### Limits

- Facebook decides how much a logged-out visitor can see. Many Pages expose only metadata, so expect `meta_fallback` rows for some Pages.
- The Actor reads one Page view per Page. It does not scroll the full Page history, and it does not scrape comments, groups, private profiles or Marketplace.
- `text` is a snippet extracted from the Page HTML near the post link, not a guaranteed full post body.
- New-post detection between runs is not automatic: compare `postId` values across runs, or use the dataset in your own workflow.

### Use with AI agents (MCP)

Connect the Apify MCP server at `https://mcp.apify.com?tools=sonic_scraper/facebook-page-posts-monitor` in Claude Desktop, Cursor, VS Code or any MCP client, and your AI assistant can call this actor as a tool. Example prompt: *"Get the latest public posts from these three Facebook pages and summarize which ones got the most engagement."*

### FAQ

**Does it require a Facebook login?** No. A Cookie header is optional and only improves coverage for Pages that hide posts from logged-out visitors.

**Why are engagement counts null?** Facebook did not include them in the HTML it served for that Page view.

**Can it scrape Facebook groups or personal profiles?** No. It is designed for public Pages.

**Is it legal?** It reads publicly available Page content. If you supply a cookie, use only an account and data you are authorized to access, and follow Facebook's terms and privacy law.

### Related Actors

- [Meta Ads Library Scraper (No Login)](https://apify.com/sonic_scraper/meta-ads-library-scraper-no-login) - ads a Facebook Page is running
- [Meta Ads Library Monitor](https://apify.com/sonic_scraper/meta-ads-library-monitor) - get alerts when competitors launch new ads
- [X (Twitter) Account Monitor](https://apify.com/sonic_scraper/x-profile-post-monitor) - new posts and profile changes on X

# Changelog

This Actor's version history is a separate document: https://apify.com/sonic_scraper/facebook-page-posts-monitor/changelog.md

# Actor input Schema

## `pageUrls` (type: `array`):

Public Facebook page URLs or handles to monitor.

## `pageUrlsText` (type: `string`):

Paste one Facebook page URL or handle per line.

## `maxPostsPerPage` (type: `integer`):

Maximum visible post rows to keep per page.

## `includePageMetadata` (type: `boolean`):

When logged-out Facebook HTML does not expose posts, save the public page metadata row instead of returning an empty dataset.

## `cookie` (type: `string`):

Optional. Paste your own Facebook Cookie header for pages that require logged-in public access. Use only accounts and data you are allowed to access.

## `dedupe` (type: `boolean`):

Remove duplicate post URLs across all pages.

## `requestDelayMs` (type: `integer`):

Delay between page requests.

## `maxConcurrency` (type: `integer`):

Parallel page requests. Keep modest for Facebook.

## `proxyConfiguration` (type: `object`):

Optional. Use Apify Proxy or a trusted proxy for repeated runs.

## `debugMode` (type: `boolean`):

Verbose logging.

## Actor input object example

```json
{
  "pageUrls": [
    "https://www.facebook.com/humansofnewyork",
    "nike"
  ],
  "maxPostsPerPage": 25,
  "includePageMetadata": true,
  "dedupe": true,
  "requestDelayMs": 1000,
  "maxConcurrency": 2,
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "debugMode": false
}
```

# Actor output Schema

## `posts` (type: `string`):

One row per visible post or page metadata fallback.

## `postsByPage` (type: `string`):

Dataset rows grouped by Facebook page.

## `summary` (type: `string`):

Totals, diagnostics, restricted pages, and warnings.

## `errors` (type: `string`):

Pages that failed to fetch.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "pageUrls": [
        "https://www.facebook.com/humansofnewyork",
        "nike"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("sonic_scraper/facebook-page-posts-monitor").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "pageUrls": [
        "https://www.facebook.com/humansofnewyork",
        "nike",
    ],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("sonic_scraper/facebook-page-posts-monitor").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "pageUrls": [
    "https://www.facebook.com/humansofnewyork",
    "nike"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call sonic_scraper/facebook-page-posts-monitor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,sonic_scraper/facebook-page-posts-monitor"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/nkNNBbP4xBImu2MEu/builds/Zvb0m1rDDnUObYCTx/openapi.json
