# Facebook Page Posts Scraper · No Cookies (`data-slayer/facebook-page-posts`) Actor

Extract posts from any Facebook page without login. Get full post text, reactions by type (like, love, care, wow, sad, angry), comments, shares, author profiles, media attachments, and timestamps. No cookies, no authentication. Export as JSON/CSV/Excel.

- **URL**: https://apify.com/data-slayer/facebook-page-posts.md
- **Developed by:** [Data Slayer](https://apify.com/data-slayer) (community)
- **Categories:** Social media, Automation, Developer tools
- **Stats:** 149 total users, 17 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $5.00 / 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?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Facebook Page Posts Scraper · No Cookies

Extract Facebook page posts without authentication or cookies. This scraper accesses public Facebook data through a cookieless architecture, eliminating the need for personal accounts, login credentials, or session management.

### Key Features

🔒 **Cookieless / No Login Required** - Access public Facebook posts without authentication, cookies, or personal accounts. No risk of account bans or session expiration.

📈 **Scalable Architecture** - Extract posts from multiple Facebook pages efficiently with built-in rate limiting and error handling for reliable large-scale data collection.

✅ **Rich Engagement Data** - Capture complete post metrics including reactions breakdown (like, love, care, haha, wow, sad, angry), comments count, reshare count, timestamps, and full author profiles.

⚡ **Fast & Reliable** - Optimized extraction engine delivers consistent results with automatic retry logic and robust error handling for uninterrupted data collection.

📊 **Export-Ready Formats** - Download your data instantly in JSON, CSV, or Excel formats, ready for analysis in your favorite tools or direct integration into your workflow.

### Use Cases

**Social Media Managers**: Track engagement patterns across competitor pages to identify optimal posting times, content formats that drive reactions, and trending topics within your niche.

**Content Strategists**: Analyze viral post characteristics including message length, media types, and reaction distributions to refine your content calendar and maximize audience engagement.

**Marketing Analysts**: Build comprehensive engagement datasets across multiple brand pages to benchmark performance, identify content gaps, and generate data-driven recommendations for cross-platform campaigns.

### Inputs

| Field | Type | Description |
|-------|------|-------------|
| pageId | String | The unique Facebook Page ID of the target page. Find this in the page URL (e.g., 61553294532484). |

### Outputs

**Available Formats**: JSON, CSV, Excel

**Extracted Fields**:

- `post_id` - Unique identifier for the post
- `type` - Post type classification
- `url` - Direct link to the Facebook post
- `message` - Full text content of the post
- `timestamp` - Unix timestamp of post publication
- `comments_count` - Total number of comments
- `reactions_count` - Total reactions across all types
- `reshare_count` - Number of times the post was shared
- `reactions` - Detailed breakdown (like, love, care, haha, wow, sad, angry)
- `author` - Complete author profile (id, name, url, profile\_picture\_url)
- `image` - Attached image URL (if present)
- `video` - Video metadata (if present)
- `video_thumbnail` - Video preview image
- `external_url` - Linked external content
- `attached_post` - Shared post data

### How to Use

**Step 1**: Enter the target Facebook Page ID in the `pageId` field. You can find this ID in the page's URL or by viewing the page source.

**Step 2**: Configure any additional parameters based on your data collection needs.

**Step 3**: Run the scraper and download your results in JSON, CSV, or Excel format. Data is available immediately upon completion.

### Sample Output

```json
{
  "post_id": "987654321098765",
  "type": "post",
  "url": "https://www.facebook.com/permalink.php?story_fbid=pfbid0XyZ123&id=987654321",
  "message": "Excited to announce our new product launch! Check out the features that will transform your workflow.",
  "timestamp": 1702915200,
  "comments_count": 127,
  "reactions_count": 1543,
  "reshare_count": 89,
  "reactions": {
    "angry": 3,
    "care": 45,
    "haha": 12,
    "like": 982,
    "love": 487,
    "sad": 1,
    "wow": 13
  },
  "author": {
    "id": "987654321",
    "name": "Tech Innovations Co",
    "url": "https://www.facebook.com/techinnovationsco",
    "profile_picture_url": "https://scontent.xx.fbcdn.net/v/t39.30808-1/profile_pic.jpg"
  },
  "image": "https://scontent.xx.fbcdn.net/v/t39.30808-6/product_image.jpg",
  "video": null,
  "external_url": "https://www.example.com/product-launch"
}
```

### 🧩 Other Facebook Actors by Data Slayer

| Actor | What it does | Link |
|---|---|---|
| Facebook Group Posts Scraper | Extract posts from any public Facebook group | [Try it](https://apify.com/data-slayer/facebook-group-posts) |
| Facebook Page Details Scraper | Get full page profiles — followers, contact info, ratings | [Try it](https://apify.com/data-slayer/facebook-page-details) |
| Facebook Reviews Scraper | Extract customer reviews from any Facebook page | [Try it](https://apify.com/data-slayer/facebook-page-reviews) |
| Facebook Page Search Scraper | Search and discover Facebook pages by keyword | [Try it](https://apify.com/data-slayer/facebook-search-pages) |
| Facebook People Search Scraper | Search and find Facebook profiles by keyword | [Try it](https://apify.com/data-slayer/facebook-search-people) |
| Facebook Events Scraper | Discover Facebook events by keyword search | [Try it](https://apify.com/data-slayer/facebook-search-events) |
| Facebook Marketplace Listing Scraper | Extract detailed listing data from Facebook Marketplace | [Try it](https://apify.com/data-slayer/facebook-marketplace-details) |

### 💬 Feedback and Support

We actively maintain this actor and ship improvements based on user feedback. If you run into any issues or have ideas for new features:

- Create an issue on the Actor's **Issues tab** in Apify Console
- Rate the actor if it helped you — it helps others find it too
  We typically respond within 24 hours.

# Actor input Schema

## `pageId` (type: `string`):

Page ID of the Facebook page to fetch posts from

## `maxPages` (type: `integer`):

Maximum number of pages to fetch (pagination handled automatically)

## Actor input object example

```json
{
  "pageId": "100064860875397",
  "maxPages": 1
}
```

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("data-slayer/facebook-page-posts").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("data-slayer/facebook-page-posts").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 '{}' |
apify call data-slayer/facebook-page-posts --silent --output-dataset

```

## MCP server setup

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

```

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/7UNvpZSmc3jmGoRES/builds/U1gTnJwpXoqrKl3mr/openapi.json
