# 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
- **Features:** Limited permissions
- **Stats:** 175 total users, 7 monthly users, 88.9% 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?

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 Posts Scraper (No Login Required)

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.",
  "message_rich": "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"
}
```

***

This Facebook Posts Scraper is a powerful web scraping tool designed to extract data from web pages without authentication barriers. Whether you need a social media post scraper for competitive analysis, a blog post scraper for content research, or a lead generation scraper for business intelligence, this web scraper delivers reliable results. Scrape website data efficiently and transform public Facebook posts into actionable insights with this cookieless web scraping tool.

### FAQ

**How much does it cost to run this Actor?**
Pricing is listed in the Pricing section above, charged per row returned. You only pay for the rows
the Actor actually produces, so a small test run costs cents.

**Do I need cookies or a login?**
No. This Actor reads public data only - no cookies, no account, no browser automation.

**Can I schedule it?**
Yes. Run it from the Apify API, on a schedule, or via a webhook, and export results as JSON, CSV or Excel.

**What if I need a slightly different output?**
Open an issue on the Actor's Issues tab describing the shape you need.

### Related actors

More Facebook actors from the same portfolio. Apify only auto-recommends actors in the same category, so here are the rest of ours:

| Actor |
|---|
| [Facebook Ads Library Scraper](https://apify.com/data-slayer/facebook-ads-library-scraper) |
| [Facebook Comments & Replies Scraper](https://apify.com/data-slayer/facebook-comments-scraper) |
| [Facebook Events Scraper · No Cookies](https://apify.com/data-slayer/facebook-search-events) |
| [Facebook Group Posts Scraper · No Cookies](https://apify.com/data-slayer/facebook-group-posts) |
| [Facebook Keyword Post Search · Public Posts](https://apify.com/data-slayer/facebook-post-search) |
| [Facebook Marketplace Listing Scraper · No Cookies](https://apify.com/data-slayer/facebook-marketplace-details) |
| [Facebook Page Details Scraper · No Cookies](https://apify.com/data-slayer/facebook-page-details) |
| [Facebook Page Reviews Scraper · No Cookies](https://apify.com/data-slayer/facebook-page-reviews) |
| [Facebook Page Search Scraper · No Cookies](https://apify.com/data-slayer/facebook-search-pages) |
| [Facebook People Search Scraper · No Cookies](https://apify.com/data-slayer/facebook-search-people) |
| [Facebook Public Profile Scraper · People Lookup by URL or ID](https://apify.com/data-slayer/facebook-profile-scraper) |

# Actor input Schema

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

A public Facebook Page URL such as https://www.facebook.com/OurWorldinData or a numeric Page ID.

## `maxItems` (type: `integer`):

Hard limit on unique post rows saved to the dataset.

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

Maximum result pages to request. The existing default of one page is preserved.

## `cursor` (type: `string`):

Continue from a cursor returned in a previous run summary. Leave empty for the newest visible posts.

## Actor input object example

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

# Actor output Schema

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

One billable default-dataset item per unique post successfully saved.

## `runSummary` (type: `string`):

Completion, scope, bounds, cursor, retry, duplicate, and row counts. This record is not a dataset item.

# 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/euKeyd5XdVkw2l7LE/openapi.json
