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

$0.8 / 1000 results. Extract photos from Facebook public profiles and pages. Use date filters. This actor is built for content monitoring, media archiving, and social intelligence.

- **URL**: https://apify.com/saswave/facebook-photos-scraper.md
- **Developed by:** [SASWAVE](https://apify.com/saswave) (community)
- **Categories:** Automation, Lead generation, Social media
- **Stats:** 5 total users, 0 monthly users, 100.0% runs succeeded, 3 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $0.80 / 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 Photo Scraper

Extract photos from public Facebook page.

With powerful filters: filter by **photos uploaded by** or **tagged in (photos of)**

Refine by **year or month-year**. Export high-resolution image URLs, permalinks directly to **JSON, CSV, or Excel**.

The **Facebook Photo Scraper** is an automated data extraction tool designed to collect photo datasets from public **[Facebook](https://www.facebook.com)** profiles, Pages

By leveraging native Facebook filtering mechanisms (such as photos posted *by* a user vs. photos tagged *of* a user, along with granular time-based filtering), this Actor enables targeted media collection for OSINT, brand protection, creative archiving, and dataset generation.

### FEATURES

- 🎯 **Advanced Photo Filtering:** Extract photos using two core modes:

  - `photos_by`: Collect images uploaded directly by the user or Page.

  - `photos_of`: Collect images where the profile or Page is tagged.

- 📅 **Granular Date Range Filtering:** Filter extractions by **Year** or **Month-Year** to isolate specific timeframes without scraping entire profile histories.

- 🖼️ **High-Resolution Image Extraction:** Retrieve full-quality direct image source URLs alongside photo thumbnails.

- 🔗 **Canonical Permalinks:** Capture direct Facebook photo URLs (`fbid`) and tagged target references.

- 🤖 **Accessibility Metadata:** Extract automated image accessibility captions (`accessibility_caption`) when available for computer vision or text matching.

- ⚡ **Anti-Blocking System:** Powered by Apify Proxy integration to navigate rate limits and maintain reliable extractions.

- 📂 **Multi-Format Export:** Download clean datasets in **JSON, CSV, Excel (XLSX), XML, or HTML**.

### USE CASES

- **Digital Forensics & OSINT Investigations:** Gather chronologically sorted image evidence and tagged photo trails across public profiles.

- **Brand Protection & IP Monitoring:** Monitor brand asset usage, unauthorized re-uploads, and tagged promotional images.

- **Computer Vision & AI Dataset Training:** Build specialized image training sets categorized by topic, user, or date ranges.

- **Creative Asset Archiving:** Backup and archive corporate event media, product catalogs, and promotional gallery histories from Facebook Pages.

### OUTPUT

Photos

```json
{
  "id": "1691072636361409",
  "accessibility_caption": "Peut être un graphique de téléphone et texte qui dit ’Épisode 3 Le Sprint d'Été DÉJOUE L'ABSENCE BRUCE Chat Outlook … Out of office 홈너 Email Message From To Objet Message Il est absent ? Son remplaçant est dans le mail. Contacte-le.’",
  "url": "https://www.facebook.com/photo.php?fbid=1691072636361409&set=pb.100063760651412.-2207520000&type=3",
  "image": "https://scontent-cdg4-2.xx.fbcdn.net/v/t39.30808-6/786375685_1691072639694742_757252602599532342_n.jpg?stp=c0.135.1638.1638a_dst-jpg_tt6&cstp=mx1638x1638&ctp=s552x414&_nc_cat=101&ccb=1-7&_nc_sid=714c7a&_nc_ohc=Xxv7EbvECnkQ7kNvwHCDtL0&_nc_oc=Adp_Ew92qXlalGR9w9VlLu-0iy5faJI-3miWkkzbyi_AQySRLCJoKVMZQ31etcIb28FDnzNyxgZ8kJ4m24JOPVI7&_nc_zt=23&_nc_ht=scontent-cdg4-2.xx&_nc_gid=58F_zrHzWKn_53DZQwIcoA&_nc_ss=7b289&oh=00_AQJBQFgQIdojduGbks5goxRakEqmz3Ppt3haEsMCcpbTYA&oe=6A9CC2C7"
}
```

### 🛟 SUPPORT

Share your runs with the developer team and create issues on error to help us improve actor quality.

You might discover edge case we didn't test yet

We stay available anytime

# Actor input Schema

## `pages` (type: `array`):

Provide public page identifier, ex: https://www.facebook.com/TeamBruceFr identifier is TeamBruceFr

## `photo_type` (type: `string`):

select photo type

## `date_filter` (type: `string`):

Year or Year-Month ex : 2017 or 2017-06

## `max_results` (type: `integer`):

0 or empty = no limit

## Actor input object example

```json
{
  "pages": [
    "TeamBruceFr"
  ],
  "photo_type": "photos_by",
  "date_filter": "",
  "max_results": 1
}
```

# 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 = {
    "pages": [
        "TeamBruceFr"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("saswave/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 = { "pages": ["TeamBruceFr"] }

# Run the Actor and wait for it to finish
run = client.actor("saswave/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 '{
  "pages": [
    "TeamBruceFr"
  ]
}' |
apify call saswave/facebook-photos-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,saswave/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/unhyRGQfq5IM6vdka/builds/s1cIj2UkVRe54ePoP/openapi.json
