# Facebook Reviews Scraper (`calm_builder/facebook-reviews-scraper`) Actor

Collect public Facebook page reviews and recommendations into clean, structured JSON format. Perfect for reputation monitoring, sentiment analysis, market research, and competitive intelligence. Gather review text, ratings, engagement metrics, and page metadata in bulk.

- **URL**: https://apify.com/calm\_builder/facebook-reviews-scraper.md
- **Developed by:** [Coder](https://apify.com/calm_builder) (community)
- **Categories:** Social media, Lead generation, Automation
- **Stats:** 23 total users, 4 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 reviews

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 Reviews Scraper

Collect public Facebook page reviews and recommendations from one or more page links into clean, structured JSON format.

This actor is built for reputation management, sentiment analysis, market research, and competitive intelligence. It allows you to gather reviews from any public Facebook page without needing complex setups or browser automation.

### Features

- **Multi-URL Support**: Process multiple Facebook pages in a single run.
- **Detailed Review Data**: Collects review text, recommendation status (Yes/No), author details, and timestamps.
- **Engagement Metrics**: Gathers reaction counts, share counts, and comment reply counts for each review.
- **Top Comments**: Includes the first few comments/replies for each review to provide context.
- **Page Metadata**: Every review record includes core page details (Page Name, URL, Overall Summary) for easy joining and grouping.
- **Structured Output**: Results are returned in a clean format ready for JSON, CSV, or Excel.

### Why use this scraper?

1. **Reputation Monitoring**: Keep track of what customers are saying about your brand or your competitors.
2. **Sentiment Analysis**: Use the collected review text for NLP tasks and customer satisfaction tracking.
3. **Market Research**: Identify common pain points or praise in your industry by analyzing competitor reviews.
4. **Data Portability**: Easily export your Facebook review history into your own CRM or dashboard.

### How to Use

1. **Find Reviews Page Link**: Navigate to the Facebook page's reviews section and copy the URL (e.g., `https://www.facebook.com/pagename/reviews` or `https://www.facebook.com/profile.php?id=123&sk=reviews`).
2. **Set Limits**: Choose how many reviews you want to collect per link.
3. **Run the Actor**: Start the actor and wait for it to complete.
4. **Download Data**: Export your results in your preferred format from the dataset tab.

### Input

| Field | Type | Description |
|---|---|---|
| **Facebook page links** (`startUrls`) | Array | List of direct links to Facebook reviews pages. |
| **Maximum reviews per link** (`maxReviewsPerUrl`) | Integer | The limit of reviews to collect for each input link (Default: 5). |

#### Example Input

```json
{
  "startUrls": [
    { "url": "https://www.facebook.com/USPizza.in/reviews" },
    { "url": "https://www.facebook.com/copperkettleyqr/reviews" }
  ],
  "maxReviewsPerUrl": 10
}
```

### Output Data Structure

Each item in the dataset represents a single review. Below is an example of the fields you will receive:

```json
{
  "postId": "347454313853838",
  "authorName": "Sãñjû Bâbã",
  "authorProfileUrl": "https://www.facebook.com/people/S%C3%A3%C3%B1j%C3%BB-B%C3%A2b%C3%A3/pfbid0Dh...",
  "authorProfileImageUrl": "https://scontent.fna.fbcdn.net/...",
  "text": "welcome US Pizza Modasa thank you",
  "isRecommended": true,
  "createdAt": "2022-02-09T21:06:36Z",
  "timestamp": 1644440796,
  "url": "https://www.facebook.com/permalink.php?story_fbid=pfbid0Ju...",
  "privacy": "Public",
  "reactionCount": 2,
  "shareCount": 0,
  "commentRepliesCount": 2,
  "topComments": [
    {
      "authorName": "US Pizza Official",
      "text": "That looks delicious 😋",
      "createdAt": "2022-03-08T11:29:54Z"
    }
  ],
  "page": {
    "id": "100064843086340",
    "name": "US Pizza Official",
    "profileBusinessId": "69598700664",
    "reviewsSummary": "70% recommend (8,199 reviews)",
    "profileUrl": "https://www.facebook.com/USPizza.in"
  }
}
```

### Responsible Use

Use this actor only for publicly available content and ensure your use complies with applicable laws, regulations, and platform terms.

# Actor input Schema

## `startUrls` (type: `array`):

Add one or more direct links to the Facebook reviews page. Examples: `https://www.facebook.com/pagename/reviews` or `https://www.facebook.com/profile.php?id=123&sk=reviews`.

## `maxReviewsPerUrl` (type: `integer`):

Maximum number of reviews to collect for each input link.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.facebook.com/copperkettleyqr/reviews"
    },
    {
      "url": "https://www.facebook.com/USPizza.in/reviews"
    }
  ],
  "maxReviewsPerUrl": 5
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# 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 = {
    "startUrls": [
        {
            "url": "https://www.facebook.com/copperkettleyqr/reviews"
        },
        {
            "url": "https://www.facebook.com/USPizza.in/reviews"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("calm_builder/facebook-reviews-scraper").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 = { "startUrls": [
        { "url": "https://www.facebook.com/copperkettleyqr/reviews" },
        { "url": "https://www.facebook.com/USPizza.in/reviews" },
    ] }

# Run the Actor and wait for it to finish
run = client.actor("calm_builder/facebook-reviews-scraper").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 '{
  "startUrls": [
    {
      "url": "https://www.facebook.com/copperkettleyqr/reviews"
    },
    {
      "url": "https://www.facebook.com/USPizza.in/reviews"
    }
  ]
}' |
apify call calm_builder/facebook-reviews-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,calm_builder/facebook-reviews-scraper"
        }
    }
}

```

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/bvRKJzmEEzDbRmVF5/builds/dULJQ9bKVPn03dven/openapi.json
