# Facebook Photos Scraper (`coregent/facebook-photos-scraper`) Actor

Scrape public photos from Facebook Pages, profiles and albums: full-size image URLs, alt text, captions, dates, reactions, comments and shares. No login or cookies. $1 per 1,000 photos, details $1 per 1,000 more.

- **URL**: https://apify.com/coregent/facebook-photos-scraper.md
- **Developed by:** [Delowar Munna](https://apify.com/coregent) (community)
- **Features:** Limited permissions
- **Stats:** 7 total users, 4 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 photo results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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 Photos Scraper — Pages, Albums & Profiles, No Login

![Facebook Photos Scraper — public photos from Facebook Pages, profiles and albums, with captions and engagement](https://raw.githubusercontent.com/coregentdevspace/facebook-photos-scraper-assets/main/thumbnail-facebook-photos-scraper.png)

**Get every public photo from a Facebook Page, profile or album as clean rows.** Each row has the full-size image URL with its width and height, Facebook's alt text, and the owner. Turn on details to add each photo's date, caption, hashtags, mentions and exact reaction, comment and share counts. Export to JSON, CSV or Excel.

- 🖼️ **Full-size image URLs** with width and height, plus Facebook's alt text (and a thumbnail on photos-tab rows)
- 📅 **Optional details:** date, caption, hashtags, mentions, and exact reactions (by type), comments and shares, not "5.2K"
- 📚 **Pages, public profiles, albums and single photos**, mixed in one run
- 🗂️ **Albums:** read one album, or the first N albums of a Page, with the album name on every row
- ⏱️ **Date filter:** only photos newer than a date or "7 days"
- 🔓 **No Facebook login, cookies or account**, and no browser, so runs are fast
- 💸 **Pay only for photos delivered.** Details are a separate, optional charge, so image-only runs cost less

***

### What can I scrape?

| Start URL                                                          | What you get                                        |
| ------------------------------------------------------------------ | --------------------------------------------------- |
| A Page or profile: `facebook.com/NASA`, `facebook.com/NASA/photos` | Its photos, newest first                            |
| A profile by ID: `facebook.com/profile.php?id=100044561550831`     | Its photos, newest first                            |
| An albums tab: `facebook.com/NASA/photos_albums`                   | The first "Maximum albums" albums, and their photos |
| An album: `facebook.com/media/set/?set=a.416661013162614`          | That album's photos, with the album name            |
| A photo: `facebook.com/photo/?fbid=1667357648092938`               | That one photo                                      |

Locale and mobile hosts (`en-gb.facebook.com`, `m.facebook.com`) work too. Group, event, reel and video URLs get a free error row that names the right Actor for them.

***

### Quick start

Run it with the defaults: you get **10 photos from NASA's Page, with details**, in under a minute.

```json
{
    "startUrls": [{ "url": "https://www.facebook.com/NASA/photos" }],
    "resultsLimit": 10,
    "includeDetails": true
}
```

#### More examples

An album's photos, images only (faster and cheaper):

```json
{
    "startUrls": [{ "url": "https://www.facebook.com/media/set/?set=a.416661013162614&type=3" }],
    "resultsLimit": 50,
    "includeDetails": false
}
```

The last 30 days of photos from three brand Pages, with engagement:

```json
{
    "startUrls": [
        { "url": "https://www.facebook.com/NASA" },
        { "url": "https://www.facebook.com/natgeo" },
        { "url": "https://www.facebook.com/LEGO" }
    ],
    "resultsLimit": 100,
    "photosNewerThan": "30 days"
}
```

The first 3 albums of a Page, 20 photos each:

```json
{
    "startUrls": [{ "url": "https://www.facebook.com/NASA/photos_albums" }],
    "maxAlbums": 3,
    "resultsLimit": 20
}
```

A Page and one of its albums, with details. This is the input behind the screenshot and sample records under [Output](#output); the group URL shows what an error row looks like:

```json
{
    "startUrls": [
        { "url": "https://www.facebook.com/NASA/photos" },
        { "url": "https://www.facebook.com/media/set/?set=a.416660999829282&type=3" },
        { "url": "https://www.facebook.com/groups/apifyusers" }
    ],
    "resultsLimit": 10,
    "includeDetails": true
}
```

One photo:

```json
{ "startUrls": [{ "url": "https://www.facebook.com/photo/?fbid=1667357648092938" }] }
```

***

### Input

| Field                | Default          | What it does                                                                                   |
| -------------------- | ---------------- | ---------------------------------------------------------------------------------------------- |
| `startUrls`          | NASA's photos    | Pages, profiles, albums tabs, albums or photo URLs (full `facebook.com/…` URLs).               |
| `resultsLimit`       | 10               | The most photos per start URL (per album for an albums tab), up to 5,000.                      |
| `includeDetails`     | on               | Open each photo for its date, caption, hashtags, mentions and engagement. Charged per photo.   |
| `photosNewerThan`    | empty            | A date (`2026-10-01`) or a relative value (`7 days`, `2 weeks`, `3 months`). Turns details on. |
| `maxAlbums`          | 5                | For an albums tab: how many albums to read.                                                    |
| `proxyConfiguration` | Apify Datacenter | See [Proxy policy](#-proxy-policy).                                                            |
| `debug`              | off              | Log request status, size and timing.                                                           |

#### Why might I get fewer photos than I asked for?

- The Page, profile or album has fewer public photos.
- The date filter skipped older photos. A source stops once a whole page of its photos is older than your date.
- Facebook limited requests for a while. The run then saves what it has, marks the source in `RUN_SUMMARY`, and saves a ready-to-run `RETRY_INPUT` with the unfinished sources.
- Your spending limit was reached. The run stops early and keeps everything already delivered.

***

### Output

One row per photo. A start URL that produces no photos gets one **free** error row with `status: "error"`, an `errorCode` (`NOT_FOUND`, `NOT_PUBLIC`, `RATE_LIMITED`, `BLOCKED` or `UNSUPPORTED_URL`) and a message.

| Field                                                               | Notes                                                                                                                      |
| ------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- |
| `photoId`, `photoUrl`                                               | Facebook's photo ID and the photo's page                                                                                   |
| `imageUrl`, `imageWidth`, `imageHeight`                             | The full-size image and its size in pixels                                                                                 |
| `thumbnailUrl`                                                      | A small square preview. Photos-tab rows only; `null` for album rows and single photos                                      |
| `altText`                                                           | Facebook's accessibility caption: the owner's own alt text, Facebook's generated one, or "No photo description available." |
| `ownerId`, `ownerName`                                              | The Page or profile that posted the photo                                                                                  |
| `sourceUrl`, `sourceType`, `position`                               | Which start URL listed it (`page`, `albums`, `album`, `photo`) and where in that list                                      |
| `albumId`, `albumName`                                              | When listed from an album or an albums tab                                                                                 |
| `createdAt`, `createdDate`                                          | When it was published (with details)                                                                                       |
| `caption`, `hashtags`, `hashtagsText`, `mentions`, `mentionsText`   | The post text and what it tags (with details)                                                                              |
| `reactionsCount`, `reactionsByType`, `commentsCount`, `sharesCount` | Exact counts, and reactions split into like, love, care, haha, wow, sad, angry (with details)                              |
| `detailStatus`                                                      | `ok`, `skipped` (details off) or `failed` (Facebook did not return the details; not charged)                               |
| `status`, `errorCode`, `errorMessage`, `scrapedAt`                  |                                                                                                                            |

Values Facebook does not publish are `null`, never `0`.

> ⚠️ **Image URLs expire.** Facebook signs its image links, and they stop working after a few days. Download the images you need soon after the run.

#### Output views and sample records

The dataset has four views. The records below are real rows from Apify runs (long URLs and captions trimmed).

##### Photos: table view

Image, owner, date, caption, engagement and links, one row per photo.

![Facebook Photos Scraper output: Photos table view with image, owner, date, caption, reactions, comments and shares](https://raw.githubusercontent.com/coregentdevspace/facebook-photos-scraper-assets/main/facebook-photos-scraper-output-photos-table-view.png)

A full record from NASA's photos tab, with details on:

```json
{
    "photoId": "1675983760563660",
    "photoUrl": "https://www.facebook.com/photo/?fbid=1675983760563660",
    "imageUrl": "https://scontent-fml20-1.xx.fbcdn.net/v/t39.99422-6/871223884_1487536193225483_3660942795677810580_n.png?stp=…",
    "imageWidth": 2000,
    "imageHeight": 1385,
    "thumbnailUrl": "https://scontent-fml20-1.xx.fbcdn.net/v/t39.99422-6/871223884_1487536193225483_3660942795677810580_n.png?stp=…",
    "altText": "An intricate cloud of white dust takes center stage in this photo, rising in a windy pillar. The background features rust-colored dust with dots of distant stars and galaxies shining through.",
    "ownerId": "100044561550831",
    "ownerName": "NASA - National Aeronautics and Space Administration",
    "sourceUrl": "https://www.facebook.com/NASA/photos",
    "sourceType": "page",
    "position": 1,
    "albumId": null,
    "albumName": null,
    "createdAt": "2026-11-03T15:00:35.000Z",
    "createdDate": "2026-11-03",
    "caption": "Pspsps 🐈‍⬛\n\nThis smoky specter is the Cat’s Head Nebula, captured in intricate detail by NASA's James Webb Space Telescope. …",
    "hashtags": [],
    "hashtagsText": null,
    "mentions": [],
    "mentionsText": null,
    "reactionsCount": 47823,
    "reactionsByType": { "love": 24555, "like": 22013, "care": 827, "wow": 293, "haha": 122, "sad": 7, "angry": 6 },
    "commentsCount": 533,
    "sharesCount": 3520,
    "detailStatus": "ok",
    "status": "ok",
    "errorCode": null,
    "errorMessage": null,
    "scrapedAt": "2026-11-05T07:13:05.803Z"
}
```

##### Images & alt text

Full-size image URLs with their size and alt text. A row from NASA's "Cover photos" album (album rows carry `albumId` and `albumName`, and no `thumbnailUrl`):

```json
{
    "imageUrl": "https://scontent-bos5-1.xx.fbcdn.net/v/t39.99422-6/809146614_4484013928506139_3181913787670602881_n.png?stp=…",
    "photoId": "1629624498532920",
    "imageWidth": 2047,
    "imageHeight": 1487,
    "altText": "No photo description available.",
    "ownerName": "NASA - National Aeronautics and Space Administration",
    "albumName": "Cover photos",
    "photoUrl": "https://www.facebook.com/photo/?fbid=1629624498532920"
}
```

##### Captions & engagement

Date, caption, hashtags, mentions and every count. A row from Nike's photos tab:

```json
{
    "photoUrl": "https://www.facebook.com/photo/?fbid=1096426968518678",
    "createdAt": "2024-09-08T20:38:04.000Z",
    "caption": "Nice finishes first. @janniksin takes home his second Grand Slam title. #WinningIsntForEveryone",
    "hashtagsText": "#WinningIsntForEveryone",
    "mentionsText": "@janniksin",
    "reactionsCount": 333,
    "reactionsByType": { "like": 249, "love": 72, "care": 5, "haha": 2, "wow": 2, "angry": 2, "sad": 1 },
    "commentsCount": 26,
    "sharesCount": 131,
    "detailStatus": "ok"
}
```

##### Errors

Start URLs that produced no photos, and why. Free:

```json
{
    "sourceUrl": "https://www.facebook.com/groups/apifyusers",
    "sourceType": null,
    "errorCode": "UNSUPPORTED_URL",
    "errorMessage": "Group photos need a login. For group posts, use coregent/facebook-groups-scraper.",
    "scrapedAt": "2026-11-05T07:13:03.392Z"
}
```

#### Run summary and retries

The key-value store holds `RUN_SUMMARY` (photos listed and saved, details fetched, duplicates skipped, photos skipped by the date filter, errors by code, one report per source) and, when a source stopped early, `RETRY_INPUT`: your input with only the unfinished sources, ready to run again.

***

### Do I need a Facebook login or cookies?

No. The Actor reads only what Facebook shows a logged-out visitor, over plain HTTP. There is nothing to log in to and no account to get restricted.

### What is not available?

- **Private photos:** friends-only profiles, private groups, and anything behind a login.
- **Who is tagged** in a photo, and who reacted.
- **Photo comments.** Use the [Facebook Comments Scraper](https://apify.com/coregent/facebook-comments-scraper) with a photo's `photoUrl`.
- **Videos and reels.** Use the [Facebook Reels Scraper](https://apify.com/coregent/facebook-reels-scraper).
- **Image files.** The Actor returns image URLs, not the image files themselves.

### Is a photo returned twice if it is in a Page and an album?

No. Photos are de-duplicated across the whole run: a photo found through a Page's photos tab and again through one of its albums is returned, and charged, once.

***

### 💸 How is pricing calculated?

**Pay per photo.** There are two events:

- **Photo result:** once per unique photo delivered to your dataset.
- **Photo details:** once per delivered photo whose details (date, caption, hashtags, mentions, engagement) were read. Only charged with "Include photo details" on.

You are **not** charged for error rows, duplicates, photos skipped by the date filter, details that could not be read, paging, retries, or the run summary. There is no start fee.

Image-only runs (details off) pay for the photo result only. Current prices are on the Actor's **Pricing** tab. This README deliberately doesn't quote figures, so it can never disagree with the live price.

If you set a spending limit on your run, the Actor stops when it is reached and keeps everything already delivered.

***

### 🔗 Coregent Facebook Actors

| You have             | Use                                                                               | To get                                              |
| -------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------- |
| A photo's `photoUrl` | [Facebook Comments Scraper](https://apify.com/coregent/facebook-comments-scraper) | the photo's comment thread, with replies            |
| A Page URL           | [Facebook Posts Scraper](https://apify.com/coregent/facebook-posts-scraper)       | its posts, with text and engagement                 |
| A Page URL           | [Facebook Reels Scraper](https://apify.com/coregent/facebook-reels-scraper)       | its reels and videos                                |
| A Page URL           | [Facebook Pages Scraper](https://apify.com/coregent/facebook-pages-leads-scraper) | category, phone, email, website, address, followers |

***

### Can I schedule it?

Yes. Save your input as a **Task** and add a **Schedule** in Apify Console. With `photosNewerThan: "7 days"` and a weekly schedule, each run returns only the new photos.

### Can I call it through the API or MCP?

Yes, like any Apify Actor:

```bash
curl -X POST "https://api.apify.com/v2/acts/coregent~facebook-photos-scraper/run-sync-get-dataset-items?token=<YOUR_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"startUrls": [{"url": "https://www.facebook.com/NASA/photos"}], "resultsLimit": 20}'
```

It is also available to AI agents through the [Apify MCP server](https://mcp.apify.com), and from the Apify SDKs for JavaScript and Python.

***

### 🚦 Proxy policy

Use **Apify Datacenter** proxy (the default) for normal runs.

**Apify Residential proxy is not supported.** If `apifyProxyGroups` includes `RESIDENTIAL`, the run uses Apify Datacenter proxy instead and logs a warning; it doesn't fail. Reason: on pay-per-result Actors, residential bandwidth is billed to the Actor's developer rather than to your run, and each photo's details are about 0.6 MB, so a single run could cost more than its results earn.

If you genuinely need residential routing, supply your own provider under **Custom proxy URLs** in the proxy editor. That traffic goes through your own account and is used as given:

```
http://user:pass@proxy.iproyal.com:12321
http://user:pass@proxy.brightdata.com:22225
http://user:pass@proxy.oxylabs.io:7777
```

***

### Limitations

- **Public, logged-out photos only**, by design.
- **Image URLs expire** after a few days (see above).
- **The date filter needs details**, because the photo list itself carries no dates. Setting a date turns details on.
- **Order is Facebook's.** Photos tabs list newest first; albums list in the album's own order.
- **Facebook limits request rates.** Large runs over many Pages can slow down or stop early on some sources; `RETRY_INPUT` lets you finish them.

***

### Privacy and responsible use

This is an **unofficial** tool and is **not affiliated with, endorsed by or sponsored by Meta or Facebook**.

It collects only what Facebook shows publicly to a logged-out visitor. It does not log in, does not use cookies, and does not bypass any access control. **Photos remain the copyright of their owners:** you are responsible for how you use the images and data, including having a lawful basis to collect and process any personal information (for example under GDPR or CCPA).

***

### Need something else?

Found a bug, or need a field or source that isn't here? Open an issue on the Actor's **Issues** tab. We read them.

# Actor input Schema

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

Public Facebook URLs to get photos from. A Page or profile (facebook.com/NASA, facebook.com/NASA/photos, profile.php?id=…) lists its photos, newest first. An albums tab (facebook.com/NASA/photos_albums) reads its albums. An album (facebook.com/media/set/?set=a.…) lists that album's photos. A photo URL (facebook.com/photo/?fbid=…) returns that one photo. Groups, events, reels and private profiles are not supported; each such URL gets a free error row saying why.

## `resultsLimit` (type: `integer`):

The most photos to save from EACH start URL. For an albums tab, this is per album. Three Pages at 100 can return up to 300 photos. You are charged only for photos delivered.

## `includeDetails` (type: `boolean`):

Open each photo to add its date, caption, hashtags, mentions and exact reaction, comment and share counts. Each photo with details is charged as a separate detail event. Switch it off if you only need the images, alt text and dimensions: runs are faster and cost less.

## `photosNewerThan` (type: `string`):

Optional. A date (2026-10-01) or a relative value (7 days, 2 weeks, 3 months). Photos older than this are skipped and not charged, and a source stops once its photos are older. This needs each photo's date, so it turns "Include photo details" on.

## `maxAlbums` (type: `integer`):

When a start URL is an albums tab (…/photos_albums), how many of its albums to read, in Facebook's order. "Maximum photos per source" applies to each album.

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

Apify Proxy (Datacenter) is on by default. Apify Residential is not supported: a run that selects it uses Apify Datacenter instead, with a warning. If you need residential routing, add your own provider under Custom proxy URLs; that traffic goes through your account.

## `debug` (type: `boolean`):

Log each request's status, size and timing (never response bodies). For troubleshooting only.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.facebook.com/NASA/photos"
    }
  ],
  "resultsLimit": 10,
  "includeDetails": true,
  "photosNewerThan": "",
  "maxAlbums": 5,
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "debug": false
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

## `images` (type: `string`):

No description

## `engagement` (type: `string`):

No description

## `runSummary` (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/NASA/photos"
        }
    ],
    "resultsLimit": 10,
    "maxAlbums": 5,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("coregent/facebook-photos-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/NASA/photos" }],
    "resultsLimit": 10,
    "maxAlbums": 5,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("coregent/facebook-photos-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/NASA/photos"
    }
  ],
  "resultsLimit": 10,
  "maxAlbums": 5,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call coregent/facebook-photos-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,coregent/facebook-photos-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/2TYBLCMV8iLY07lwG/builds/7kjcPk5pYSuPGkAZB/openapi.json
