# Facebook Posts & Comments Scraper (`krazee_kaushik/facebook-posts-and-comments-scraper`) Actor

Scrape Facebook posts, photos, videos, and reels from multiple profiles and pages. Process 50+ posts per minute and collect hundreds of comments per post in seconds with configurable limits and sorting. No login, cookies, or API keys required.

- **URL**: https://apify.com/krazee\_kaushik/facebook-posts-and-comments-scraper.md
- **Developed by:** [Krazee](https://apify.com/krazee_kaushik) (community)
- **Categories:** AI, Social media, Developer tools
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 facebook post scrapeds

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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

### 📘 What is Facebook Posts & Comments Scraper?

Facebook Posts & Comments Scraper helps you extract posts, reels, and photos from public [Facebook](https://www.facebook.com) profiles and pages. 

By automating the extraction of both posts and their comment threads in a single pass, it allows you to collect content and engagement metrics together without managing separate workflows. 

Simply provide one or more Facebook usernames, profile URLs, page URLs, or `profile.php?id=...` URLs, choose how many posts to collect, and click **"Save & Start"** to begin scraping Facebook posts and comments.
---

### ⭐ Why Use This Actor?

- 💬 **Posts + Comments Together:** Collect public posts and their comments in a single run without using a separate comments scraper.

- ⚡ **Fast Comment Collection:** Collect hundreds of comments per post in seconds using API-based extraction and optimized session management.

- 🛡️ **Reliable Long Runs:** Automatically recovers from temporary Facebook and network-side interruptions.

- 🔓 **No Login Required:** No Facebook accounts, cookies, sessions, API keys, or manual setup needed.

- ⏯️ **Resurrect Run Support:** Continue interrupted jobs from where they stopped instead of starting over.

---

### 📊 What Data Can You Extract?

| Category | Included Data |
|---|---|
| 📝 Post Information | Post IDs, post URLs, post type, post text, creation timestamps, and scraping timestamps |
| 👤 Author Information | Author IDs, names, profile URLs, profile images, usernames, and verification status |
| 📈 Engagement Metrics | Reaction counts, comment counts, share counts, and reaction breakdowns |
| 😀 Reaction Analytics | Likes, loves, cares, hahas, wows, sads, angries, and other available reaction data |
| 🖼️ Media Content | Photos, videos, media URLs, thumbnails, accessibility captions, and related media metadata |
| 🎥 Video Metrics | Video IDs, view counts, video metadata, and playback information when available |
| 💬 Comment Data | Comment text, comment IDs, timestamps, reaction counts, reply counts, and comment URLs |
| 👥 Comment Author Information | Comment author names, profile URLs, profile images, author IDs, and verification status |

The actor returns one dataset item per post, with comments optionally included inside each post record for easier analysis and export.

---

### 🚀 How to Scrape Facebook Posts

Copy one of the examples below into the actor input, customize it for your needs, and click **"Save & Start"**.

The actor will collect the requested Facebook data and store the results in an Apify dataset that can be exported to JSON, CSV, Excel, XML, RSS, HTML, and other supported formats.

#### Scrape Posts Only

Use this example to collect posts from a public Facebook profile or page.

```json
{
  "profiles": [
    "https://www.facebook.com/facebook/"
    // Facebook profile URLs, page URLs, usernames, or profile.php?id=... URLs are supported
  ]
}
````

#### Scrape Posts With Comments

Enable comments scraping to collect comments together with each post.

```json
{
  "profiles": [
    "https://www.facebook.com/facebook/"
  ],
  "resultsPerProfile": 50,
  "includeComments": true,
  "commentsSortOrder": "RANKED_FILTERED_INTENT_V1",
  "commentsLimit": 20
}
```

***

### 📥 Sample Output

```json
{
    "postId": "1547292527442762",
    "url": "https://www.facebook.com/reel/1414428130709230/",
    "postType": "reel",
    "createdAt": 1781721103,
    "scrapedAt": "2026-06-18T07:26:51.611246Z",
    "authorId": "100064860875397",
    "authorName": "Facebook",
    "authorUsername": null,
    "authorUrl": "https://www.facebook.com/facebook",
    "authorProfileImage": "https://scontent-lax7-1.xx.fbcdn.net/v/t39.30808-1/380700650_10162533193146729_2379134611963304810_n.jpg?stp=cp0_dst-jpg_s50x50_tt6&_nc_cat=1&ccb=1-7&_nc_sid=2d3e12&_nc_ohc=h2S5cNIRk50Q7kNvwF_QIre&_nc_oc=AdqSkSCbZuZWJcUreBnhQWd1-LABNdtFfW23z8P5dZoTGuYOK3nOhGlMD9HKT3Jb32g&_nc_zt=24&_nc_ht=scontent-lax7-1.xx&_nc_gid=F5l50a2SiT49nW5CPxf4Pw&_nc_ss=79289&oh=00_Af-a4q_R5bMOlMCke8xWgExLspQo__rBZ_XnsKqfem1UpA&oe=6A39780E",
    "authorVerified": false,
    "text": "Just ask 🌺\n\nGwyneth Yuma needed flowers to make leis, so she knocked on the auntie’s door across the street. \n\n\"Most people are kind and happy to help if you're kind and respectful first.\" \n\nMusic by The Vitals 808",
    "reactionCount": 3408,
    "reactionBreakdown": {
      "like": 2732,
      "love": 539,
      "care": 95,
      "haha": 5,
      "wow": 32,
      "sad": 2,
      "angry": 3
    },
    "commentCount": 953,
    "shareCount": 60,
    "videoId": "1414428130709230",
    "videoViewCount": 0,
    "mediaType": "reel",
    "media": [
      {
        "__typename": "Video",
        "id": "1414428130709230",
        "url": "https://video-lax3-1.xx.fbcdn.net/o1/v/t2/f2/m366/AQPVb3yAnqn9AxCcYfaJUgf_9qBo7x7kbmREqFgeGsW9cQVtesZ2gAaN0tXo070XBdQs1x2P1XppWmjg8jiX-IKhRxy-Uls926ysLD9icHX1ow.mp4?_nc_cat=108&_nc_sid=5e9851&_nc_ht=video-lax3-1.xx.fbcdn.net&_nc_ohc=hn4R_qJr_BsQ7kNvwFsU4fv&efg=eyJ2ZW5jb2RlX3RhZyI6Inhwdl9wcm9ncmVzc2l2ZS5GQUNFQk9PSy4uQzMuNzIwLmRhc2hfaDI2NC1iYXNpYy1nZW4yXzcyMHAiLCJ4cHZfYXNzZXRfaWQiOjEzOTQyNzc1NTI2MDc3NzEsImFzc2V0X2FnZV9kYXlzIjowLCJ2aV91c2VjYXNlX2lkIjoxMDEyMiwiZHVyYXRpb25fcyI6MTUsInVybGdlbl9zb3VyY2UiOiJ3d3cifQ%3D%3D&ccb=17-1&vs=6f8699464b7ce34f&_nc_vs=HBksFQIYRWZiX2VwaGVtZXJhbC9DNzRCOEJDNDI0NUYxRDIwQTE2MzY3MzJDN0NFRkU4Q19tdF8xX3ZpZGVvX2Rhc2hpbml0Lm1wNBUAAsgBEgAVAhhAZmJfcGVybWFuZW50LzJFNDQxMDBCOTE2NTRERjkyMjRDQjhGREEyQUZGMjlDX2F1ZGlvX2Rhc2hpbml0Lm1wNBUCAsgBEgAoABgAGwKIB3VzZV9vaWwBMRJwcm9ncmVzc2l2ZV9yZWNpcGUBMRUAACa2yO6j0YX6BBUCKAJDMywXQC_ul41P3zsYGWRhc2hfaDI2NC1iYXNpYy1nZW4yXzcyMHARAHUCZZSeAQA&_nc_gid=F5l50a2SiT49nW5CPxf4Pw&_nc_ss=79289&_nc_zt=28&oh=00_Af-bpOoOKwQaRUGuT4xU0S5YDiWoPSZjrG38tFyyyugOlA&oe=6A396EA8&bitrate=2599134&tag=dash_h264-basic-gen2_720p",
        "thumbnail": "https://scontent-lax7-1.xx.fbcdn.net/v/t15.5256-10/724010136_1039517898409705_5072666110246631299_n.jpg?stp=dst-jpg_s960x960_tt6&_nc_cat=1&ccb=1-7&_nc_sid=d2b52d&_nc_ohc=UkT-VqZSmN0Q7kNvwGoEYsN&_nc_oc=AdpoYYQwvWgTEACnSwo1tHqes_52FQQGCONkL31nYxFowaDO9uS2iaeIFxqwTN7BgNA&_nc_zt=23&_nc_ht=scontent-lax7-1.xx&_nc_gid=F5l50a2SiT49nW5CPxf4Pw&_nc_ss=79289&oh=00_Af8u_w5asMB_gofyNewaEPTrReV5YFL712aRkHNrdA3QUw&oe=6A39844E",
        "width": 1080,
        "height": 1920,
        "playableDurationInMs": 15967,
        "isLooping": true,
        "accessibilityCaption": null,
        "browserNativeHdUrl": "https://video-lax3-1.xx.fbcdn.net/o1/v/t2/f2/m366/AQPVb3yAnqn9AxCcYfaJUgf_9qBo7x7kbmREqFgeGsW9cQVtesZ2gAaN0tXo070XBdQs1x2P1XppWmjg8jiX-IKhRxy-Uls926ysLD9icHX1ow.mp4?_nc_cat=108&_nc_sid=5e9851&_nc_ht=video-lax3-1.xx.fbcdn.net&_nc_ohc=hn4R_qJr_BsQ7kNvwFsU4fv&efg=eyJ2ZW5jb2RlX3RhZyI6Inhwdl9wcm9ncmVzc2l2ZS5GQUNFQk9PSy4uQzMuNzIwLmRhc2hfaDI2NC1iYXNpYy1nZW4yXzcyMHAiLCJ4cHZfYXNzZXRfaWQiOjEzOTQyNzc1NTI2MDc3NzEsImFzc2V0X2FnZV9kYXlzIjowLCJ2aV91c2VjYXNlX2lkIjoxMDEyMiwiZHVyYXRpb25fcyI6MTUsInVybGdlbl9zb3VyY2UiOiJ3d3cifQ%3D%3D&ccb=17-1&vs=6f8699464b7ce34f&_nc_vs=HBksFQIYRWZiX2VwaGVtZXJhbC9DNzRCOEJDNDI0NUYxRDIwQTE2MzY3MzJDN0NFRkU4Q19tdF8xX3ZpZGVvX2Rhc2hpbml0Lm1wNBUAAsgBEgAVAhhAZmJfcGVybWFuZW50LzJFNDQxMDBCOTE2NTRERjkyMjRDQjhGREEyQUZGMjlDX2F1ZGlvX2Rhc2hpbml0Lm1wNBUCAsgBEgAoABgAGwKIB3VzZV9vaWwBMRJwcm9ncmVzc2l2ZV9yZWNpcGUBMRUAACa2yO6j0YX6BBUCKAJDMywXQC_ul41P3zsYGWRhc2hfaDI2NC1iYXNpYy1nZW4yXzcyMHARAHUCZZSeAQA&_nc_gid=F5l50a2SiT49nW5CPxf4Pw&_nc_ss=79289&_nc_zt=28&oh=00_Af-bpOoOKwQaRUGuT4xU0S5YDiWoPSZjrG38tFyyyugOlA&oe=6A396EA8&bitrate=2599134&tag=dash_h264-basic-gen2_720p",
        "browserNativeSdUrl": "https://video-lax3-1.xx.fbcdn.net/o1/v/t2/f2/m412/AQNlsni0pG1MM5DscSHcnsSxsUpf8oik0XmsNKspgukdlRpsJLgb-JjJbSq87W7wx_nR5cpUmzOzPRXYa9w4WPi4EiPafl1FRaQE7ifuTQ.mp4?_nc_cat=104&_nc_sid=8bf8fe&_nc_ht=video-lax3-1.xx.fbcdn.net&_nc_ohc=zHW5L58UyAMQ7kNvwFGt5-D&efg=eyJ2ZW5jb2RlX3RhZyI6Inhwdl9wcm9ncmVzc2l2ZS5GQUNFQk9PSy4uQzMuMzYwLnN2ZV9zZCIsInhwdl9hc3NldF9pZCI6MTM5NDI3NzU1MjYwNzc3MSwiYXNzZXRfYWdlX2RheXMiOjAsInZpX3VzZWNhc2VfaWQiOjEwMTIyLCJkdXJhdGlvbl9zIjoxNSwidXJsZ2VuX3NvdXJjZSI6Ind3dyJ9&ccb=17-1&_nc_gid=F5l50a2SiT49nW5CPxf4Pw&_nc_ss=79289&_nc_zt=28&oh=00_Af_c4oKiTiG_PyIZTGLUDgtkPvFLuna9aWNq9CknlN4HFw&oe=6A396776&bitrate=632465&tag=sve_sd",
        "dashManifest": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"urn:mpeg:dash:schema:mpd:2011 DASH-MPD.xsd\" profiles=\"urn:mpeg:dash:profile:isoff-on-demand:2011\" minBufferTime=\"PT2S\" type=\"static\" mediaPresentationDuration=\"PT15.975328S\" FBTagsetUsed=\"r2av1-r1gen2vp9-m3\" FBManifestIdentifier=\"FgAYEnIyYXYxLXIxZ2VuMnZwOS1tMxmWroW7ldOF+gTutfSJnYb6BOyPuZOdhvoEloPQlp2G+gTA9uaZnYb6BOrp/ZydhvoElN2UoJ2G+gS+0KujnYb6BOjDwqadhvoEIhgQYXVkaW9fYWFjX2xuX3ZiciI2ABQAEgA=\"><Period id=\"0\" duration=\"PT15.975328S\"><AdaptationSet id=\"0\" contentType=\"video\" frameRate=\"15360/512\" subsegmentAlignment=\"true\" par=\"9:16\" FBUnifiedUploadResolutionMos=\"360:74.6,480:74.6,720:74.6,1080:74.6\"><SupplementalProperty schemeIdUri=\"urn:mpeg:mpegB:cicp:MatrixCoefficients\" value=\"1\"/><SupplementalProperty schemeIdUri=\"urn:mpeg:mpegB:cicp:ColourPrimaries\" value=\"1\"/><SupplementalProperty schemeIdUri=\"urn:mpeg:mpegB:cicp:TransferCharacteristics\" value=\"1\"/><Representation id=\"1394287752606751v\" bandwidth=\"252373\" codecs=\"av01.0.04M.08.0.111.01.01.01.0\" mimeType=\"video/mp4\" sar=\"1:1\" FBEncodingTag=\"dash_r2av1-r1gen2vp9-m3_q20\" FBPlaybackResolutionMos=\"0:100,360:32.4,480:28.5,720:25.2,1080:25.9\" FBPlaybackResolutionMosConfidenceLevel=\"high\" FBPlaybackResolutionCsvqm=\"0:100,360:84.4,480:79.6,720:71.7,1080:63.3\" width=\"540\" height=\"960\" FBQualityClass=\"sd\" FBQualityLabel=\"240p\"><BaseURL>https://video-lax3-1.xx.fbcdn.net/o1/v/t2/f2/m366/AQNR4YpPsYoiKP_wwOfUZpoFia7MnCINbwOR4X4UAtqnRQsZ6U1TgdqdlktDsCzUwF32Y_9dUx1xw1SdNm0axJ34RZL78LW0FbgG89k.mp4?_nc_cat=108&amp;_nc_sid=9ca052&amp;_nc_ht=video-lax3-1.xx.fbcdn.net&amp;_nc_ohc=kXndtbptzaUQ7kNvwEnLiep&amp;efg=eyJ2ZW5jb2RlX3RhZyI6ImRhc2hfcjJhdjEtcjFnZW4ydnA5LW0zX3EyMCIsInZpZGVvX2lkIjoxNDE0NDI4MTMwNzA5MjMwLCJvaWxfdXJsZ2VuX2FwcF9pZCI6MCwiY2xpZW50X25hbWUiOiJ1bmtub3duIiwieHB2X2Fzc2V0X2lkIjoxMzk0Mjc3NTUyNjA3NzcxLCJhc3NldF9hZ2VfZGF5cyI6MCwidmlfdXNlY2FzZV9pZCI6MTAxMjIsImR1cmF0aW9uX3MiOjE1LCJiaXRyYXRlIjoyNTIzNzMsInVybGdlbl9zb3VyY2UiOiJ3d3cifQ%3D%3D&amp;ccb=17-1&amp;_nc_gid=F5l50a2SiT49nW5CPxf4Pw&amp;_nc_ss=79289&amp;_nc_zt=28&amp;oh=00_Af89AGrJ3oYkE3etvCxt5Whd8lFJUVDoIwAFcOfDov74Bg&amp;oe=6A397B51</BaseURL><SegmentBase indexRange=\"826-905\" timescale=\"15360\" FBFirstSegmentRange=\"906-160621\" FBPrefetchHighlightRange=\"296876-473386\"><Initialization range=\"0-825\"/></SegmentBase></Representation><Representation id=\"1394287739273419v\" bandwidth=\"359151\" codecs=\"av01.0.05M.08.0.111.01.01.01.0\" mimeType=\"video/mp4\" sar=\"1:1\" FBEncodingTag=\"dash_r2av1-r1gen2vp9-m3_q30\" FBPlaybackResolutionMos=\"0:100,360:39.8,480:34.9,720:31.9,1080:31.6\" FBPlaybackResolutionMosConfidenceLevel=\"high\" FBPlaybackResolutionCsvqm=\"0:100,360:89.3,480:85.6,720:79.6,1080:72.6\" width=\"720\" height=\"1280\" FBQualityClass=\"hd\" FBQualityLabel=\"270p\"><BaseURL>https://video-lax3-1.xx.fbcdn.net/o1/v/t2/f2/m366/AQMc-pYIzWoJI7OheQuZi0CotsSaKOutydbTsijZcfqqXF4sGoGYdErOEtKm_CrxKuiPfvxuQPfV3scP49u8uCQBOh7xKZ21KHuz4gI.mp4?_nc_cat=108&amp;_nc_sid=9ca052&amp;_nc_ht=video-lax3-1.xx.fbcdn.net&amp;_nc_ohc=6GBSY8ti65cQ7kNvwE18xoJ&amp;efg=eyJ2ZW5jb2RlX3RhZyI6ImRhc2hfcjJhdjEtcjFnZW4ydnA5LW0zX3EzMCIsInZpZGVvX2lkIjoxNDE0NDI4MTMwNzA5MjMwLCJvaWxfdXJsZ2VuX2FwcF9pZCI6MCwiY2xpZW50X25hbWUiOiJ1bmtub3duIiwieHB2X2Fzc2V0X2lkIjoxMzk0Mjc3NTUyNjA3NzcxLCJhc3NldF9hZ2VfZGF5cyI6MCwidmlfdXNlY2FzZV9pZCI6MTAxMjIsImR1cmF0aW9uX3MiOjE1LCJiaXRyYXRlIjozNTkxNTEsInVybGdlbl9zb3VyY2UiOiJ3d3cifQ%3D%3D&amp;ccb=17-1&amp;_nc_gid=F5l50a2SiT49nW5CPxf4Pw&amp;_nc_ss=79289&amp;_nc_zt=28&amp;oh=00_Af9DoIeE8T_4mgOPri6PSNiCnW1tomCmrF2uf69qTXLQCQ&amp;oe=6A39708D</BaseURL><SegmentBase indexRange=\"826-905\" timescale=\"15360\" FBFirstSegmentRange=\"906-232974\" FBPrefetchHighlightRange=\"421011-673952\"><Initialization range=\"0-825\"/></SegmentBase></Representation><Representation id=\"1394287755940084v\" bandwidth=\"588296\" codecs=\"av01.0.05M.08.0.111.01.01.01.0\" mimeType=\"video/mp4\" sar=\"1:1\" FBEncodingTag=\"dash_r2av1-r1gen2vp9-m3_q40\" FBPlaybackResolutionMos=\"0:100,360:54.6,480:48.5,720:42.8,1080:40.7\" FBPlaybackResolutionMosConfidenceLevel=\"high\" FBPlaybackResolutionCsvqm=\"0:100,360:95.5,480:93.1,720:88.4,1080:81.2\" width=\"720\" height=\"1280\" FBQualityClass=\"hd\" FBQualityLabel=\"360p\"><BaseURL>https://video-lax3-1.xx.fbcdn.net/o1/v/t2/f2/m366/AQNJVVpW5swFNmZkdpenQwsQzMvsUuLQATX87ab3auvi9EG2qWcRTWzUUUgnv21jxF7k5lp0iTe4vAyy2rh4YttO3AO2h6dFEdP6sOA.mp4?_nc_cat=109&amp;_nc_sid=9ca052&amp;_nc_ht=video-lax3-1.xx.fbcdn.net&amp;_nc_ohc=N9zdh0AyaWcQ7kNvwEQjKZY&amp;efg=eyJ2ZW5jb2RlX3RhZyI6ImRhc2hfcjJhdjEtcjFnZW4ydnA5LW0zX3E0MCIsInZpZGVvX2lkIjoxNDE0NDI4MTMwNzA5MjMwLCJvaWxfdXJsZ2VuX2FwcF9pZCI6MCwiY2xpZW50X25hbWUiOiJ1bmtub3duIiwieHB2X2Fzc2V0X2lkIjoxMzk0Mjc3NTUyNjA3NzcxLCJhc3NldF9hZ2VfZGF5cyI6MCwidmlfdXNlY2FzZV9pZCI6MTAxMjIsImR1cmF0aW9uX3MiOjE1LCJiaXRyYXRlIjo1ODgyOTYsInVybGdlbl9zb3VyY2UiOiJ3d3cifQ%3D%3D&amp;ccb=17-1&amp;_nc_gid=F5l50a2SiT49nW5CPxf4Pw&amp;_nc_ss=79289&amp;_nc_zt=28&amp;oh=00_Af-w6KXpmKEHqQGfO3WtcEeA_KzqDpJZHdUoIJ2c-XwroA&amp;oe=6A398C6A</BaseURL><SegmentBase indexRange=\"826-905\" timescale=\"15360\" FBFirstSegmentRange=\"906-391502\" FBPrefetchHighlightRange=\"699001-1109268\"><Initialization range=\"0-825\"/></SegmentBase></Representation><Representation id=\"1394287735940086v\" bandwidth=\"838671\" codecs=\"av01.0.05M.08.0.111.01.01.01.0\" mimeType=\"video/mp4\" sar=\"1:1\" FBEncodingTag=\"dash_r2av1-r1gen2vp9-m3_q50\" FBPlaybackResolutionMos=\"0:100,360:63.9,480:57.8,720:51.8,1080:48\" FBPlaybackResolutionMosConfidenceLevel=\"high\" FBPlaybackResolutionCsvqm=\"0:100,360:98.05,480:97,720:93.9,1080:87.5\" width=\"720\" height=\"1280\" FBQualityClass=\"hd\" FBQualityLabel=\"480p\"><BaseURL>https://video-lax7-1.xx.fbcdn.net/o1/v/t2/f2/m366/AQMq9TV0j3XtScX20AUkM4NX0Ji6743gZsRReYBKpQw9F5oVUAnsbzr4aR6iNhikf4RLEb4kuHPiUzJJaQ94tb1ikf9x12xxfY6D0S0.mp4?_nc_cat=1&amp;_nc_sid=9ca052&amp;_nc_ht=video-lax7-1.xx.fbcdn.net&amp;_nc_ohc=akX9ZMIgILkQ7kNvwGzbrOO&amp;efg=eyJ2ZW5jb2RlX3RhZyI6ImRhc2hfcjJhdjEtcjFnZW4ydnA5LW0zX3E1MCIsInZpZGVvX2lkIjoxNDE0NDI4MTMwNzA5MjMwLCJvaWxfdXJsZ2VuX2FwcF9pZCI6MCwiY2xpZW50X25hbWUiOiJ1bmtub3duIiwieHB2X2Fzc2V0X2lkIjoxMzk0Mjc3NTUyNjA3NzcxLCJhc3NldF9hZ2VfZGF5cyI6MCwidmlfdXNlY2FzZV9pZCI6MTAxMjIsImR1cmF0aW9uX3MiOjE1LCJiaXRyYXRlIjo4Mzg2NzEsInVybGdlbl9zb3VyY2UiOiJ3d3cifQ%3D%3D&amp;ccb=17-1&amp;_nc_gid=F5l50a2SiT49nW5CPxf4Pw&amp;_nc_ss=79289&amp;_nc_zt=28&amp;oh=00_Af9MFVh37vk0jP8UBwbbaXyUzw9AyicJs0lXi25Emb6G2A&amp;oe=6A397CCA</BaseURL><SegmentBase indexRange=\"826-905\" timescale=\"15360\" FBFirstSegmentRange=\"906-565234\" FBPrefetchHighlightRange=\"1005834-1585321\"><Initialization range=\"0-825\"/></SegmentBase></Representation><Representation id=\"1394287725940087v\" bandwidth=\"1128969\" codecs=\"av01.0.05M.08.0.111.01.01.01.0\" mimeType=\"video/mp4\" sar=\"1:1\" FBEncodingTag=\"dash_r2av1-r1gen2vp9-m3_q60\" FBPlaybackResolutionMos=\"0:100,360:70.7,480:65.1,720:58.4,1080:54.1\" FBPlaybackResolutionMosConfidenceLevel=\"high\" FBPlaybackResolutionCsvqm=\"0:100,360:99.016,480:98.66,720:97.4,1080:92.5\" width=\"720\" height=\"1280\" FBQualityClass=\"hd\" FBQualityLabel=\"540p\"><BaseURL>https://video-lax7-1.xx.fbcdn.net/o1/v/t2/f2/m366/AQMhXOJkIptDkhJQqphge9LZTC-_QlOlLxstB3or6ruSvn7rde4rc0YwdpZ67bjAbF5C315uB5gJWZNzurZqY0l6JoblWpIlWXfCloQ.mp4?_nc_cat=1&amp;_nc_sid=9ca052&amp;_nc_ht=video-lax7-1.xx.fbcdn.net&amp;_nc_ohc=H-ybYgD-A88Q7kNvwGiFRev&amp;efg=eyJ2ZW5jb2RlX3RhZyI6ImRhc2hfcjJhdjEtcjFnZW4ydnA5LW0zX3E2MCIsInZpZGVvX2lkIjoxNDE0NDI4MTMwNzA5MjMwLCJvaWxfdXJsZ2VuX2FwcF9pZCI6MCwiY2xpZW50X25hbWUiOiJ1bmtub3duIiwieHB2X2Fzc2V0X2lkIjoxMzk0Mjc3NTUyNjA3NzcxLCJhc3NldF9hZ2VfZGF5cyI6MCwidmlfdXNlY2FzZV9pZCI6MTAxMjIsImR1cmF0aW9uX3MiOjE1LCJiaXRyYXRlIjoxMTI4OTY5LCJ1cmxnZW5fc291cmNlIjoid3d3In0%3D&amp;ccb=17-1&amp;_nc_gid=F5l50a2SiT49nW5CPxf4Pw&amp;_nc_ss=79289&amp;_nc_zt=28&amp;oh=00_Af8oWZSwLTzr87dNAcSgZKkOXx7_tg_Q1LaMdAOBy5XYKg&amp;oe=6A3984B0</BaseURL><SegmentBase indexRange=\"826-905\" timescale=\"15360\" FBFirstSegmentRange=\"906-767556\" FBPrefetchHighlightRange=\"1366065-2141208\"><Initialization range=\"0-825\"/></SegmentBase></Representation><Representation id=\"1394287749273418v\" bandwidth=\"1461975\" codecs=\"av01.0.05M.08.0.111.01.01.01.0\" mimeType=\"video/mp4\" sar=\"1:1\" FBEncodingTag=\"dash_r2av1-r1gen2vp9-m3_q70\" FBPlaybackResolutionMos=\"0:100,360:75.3,480:70.4,720:63.8,1080:58.5\" FBPlaybackResolutionMosConfidenceLevel=\"high\" FBPlaybackResolutionCsvqm=\"0:100,360:99.347,480:99.288,720:98.87,1080:95.9\" width=\"720\" height=\"1280\" FBQualityClass=\"hd\" FBQualityLabel=\"640p\"><BaseURL>https://video-lax7-1.xx.fbcdn.net/o1/v/t2/f2/m366/AQPqjriOpF-1R3csUakZhPCFPDWrfvQUx-iSByRm3ai2Hma4LPRVHApDZsxg9Pbu4XBzOKfYqJVxBKrd6rXrNm6-2VfAQEQXrZ7kmvs.mp4?_nc_cat=101&amp;_nc_sid=9ca052&amp;_nc_ht=video-lax7-1.xx.fbcdn.net&amp;_nc_ohc=N0NdLeGaEy4Q7kNvwEmoxEg&amp;efg=eyJ2ZW5jb2RlX3RhZyI6ImRhc2hfcjJhdjEtcjFnZW4ydnA5LW0zX3E3MCIsInZpZGVvX2lkIjoxNDE0NDI4MTMwNzA5MjMwLCJvaWxfdXJsZ2VuX2FwcF9pZCI6MCwiY2xpZW50X25hbWUiOiJ1bmtub3duIiwieHB2X2Fzc2V0X2lkIjoxMzk0Mjc3NTUyNjA3NzcxLCJhc3NldF9hZ2VfZGF5cyI6MCwidmlfdXNlY2FzZV9pZCI6MTAxMjIsImR1cmF0aW9uX3MiOjE1LCJiaXRyYXRlIjoxNDYxOTc1LCJ1cmxnZW5fc291cmNlIjoid3d3In0%3D&amp;ccb=17-1&amp;_nc_gid=F5l50a2SiT49nW5CPxf4Pw&amp;_nc_ss=79289&amp;_nc_zt=28&amp;oh=00_Af-dMPQ__m1icZ8wHCprj1oS9AdBWO563kW_8hiRikXaFg&amp;oe=6A398226</BaseURL><SegmentBase indexRange=\"826-905\" timescale=\"15360\" FBFirstSegmentRange=\"906-1003611\" FBPrefetchHighlightRange=\"1789760-2783198\"><Initialization range=\"0-825\"/></SegmentBase></Representation><Representation id=\"1394287742606752v\" bandwidth=\"1734190\" codecs=\"av01.0.05M.08.0.111.01.01.01.0\" mimeType=\"video/mp4\" sar=\"1:1\" FBEncodingTag=\"dash_r2av1-r1gen2vp9-m3_q80\" FBPlaybackResolutionMos=\"0:100,360:77.6,480:73.1,720:66.8,1080:61.2\" FBPlaybackResolutionMosConfidenceLevel=\"high\" FBPlaybackResolutionCsvqm=\"0:100,360:99.429,480:99.448,720:99.358,1080:97.1\" width=\"720\" height=\"1280\" FBQualityClass=\"hd\" FBQualityLabel=\"720p\"><BaseURL>https://video-lax3-2.xx.fbcdn.net/o1/v/t2/f2/m366/AQPDfvSRmfUIwew2YRD6eDz1SiAdGTbfntBCNY9BB6e1LTuZWUlvFAVMmA8nngOqyBMc48ECw52MEfWFCjkYPL-G_u1oJ9mhtnNg4Vs.mp4?_nc_cat=100&amp;_nc_sid=9ca052&amp;_nc_ht=video-lax3-2.xx.fbcdn.net&amp;_nc_ohc=pEyx1xf881QQ7kNvwH2bOHS&amp;efg=eyJ2ZW5jb2RlX3RhZyI6ImRhc2hfcjJhdjEtcjFnZW4ydnA5LW0zX3E4MCIsInZpZGVvX2lkIjoxNDE0NDI4MTMwNzA5MjMwLCJvaWxfdXJsZ2VuX2FwcF9pZCI6MCwiY2xpZW50X25hbWUiOiJ1bmtub3duIiwieHB2X2Fzc2V0X2lkIjoxMzk0Mjc3NTUyNjA3NzcxLCJhc3NldF9hZ2VfZGF5cyI6MCwidmlfdXNlY2FzZV9pZCI6MTAxMjIsImR1cmF0aW9uX3MiOjE1LCJiaXRyYXRlIjoxNzM0MTkwLCJ1cmxnZW5fc291cmNlIjoid3d3In0%3D&amp;ccb=17-1&amp;_nc_gid=F5l50a2SiT49nW5CPxf4Pw&amp;_nc_ss=79289&amp;_nc_zt=28&amp;oh=00_Af9IElE4cKcU2WbWvWxhRLo1zeszirgYtznkdFDiO-Rxyg&amp;oe=6A3955E1</BaseURL><SegmentBase indexRange=\"826-905\" timescale=\"15360\" FBFirstSegmentRange=\"906-1199965\" FBPrefetchHighlightRange=\"2139282-3309776\"><Initialization range=\"0-825\"/></SegmentBase></Representation><Representation id=\"1394287745940085v\" bandwidth=\"2706758\" codecs=\"av01.0.08M.08.0.111.01.01.01.0\" mimeType=\"video/mp4\" sar=\"1:1\" FBEncodingTag=\"dash_r2av1-r1gen2vp9-m3_q90\" FBPlaybackResolutionMos=\"0:100,360:84.7,480:80,720:74.5,1080:70.8\" FBPlaybackResolutionMosConfidenceLevel=\"high\" FBPlaybackResolutionCsvqm=\"0:100,360:99.655,480:99.737,720:99.839,1080:99.929\" width=\"1080\" height=\"1920\" FBQualityClass=\"hd\" FBQualityLabel=\"1080p\"><BaseURL>https://video-lax7-1.xx.fbcdn.net/o1/v/t2/f2/m366/AQNrd_J_-Z_hGBcCiTiDgA_Ik4NtBPQsjvIkPgB1cUQ1TweBoSLvKUpms_UDZnnrNcTWIP3Hefyiw9Li12zPA5eBC4wFEGYDlhga1cA.mp4?_nc_cat=1&amp;_nc_sid=9ca052&amp;_nc_ht=video-lax7-1.xx.fbcdn.net&amp;_nc_ohc=dtZrO-OxrVQQ7kNvwGCir7w&amp;efg=eyJ2ZW5jb2RlX3RhZyI6ImRhc2hfcjJhdjEtcjFnZW4ydnA5LW0zX3E5MCIsInZpZGVvX2lkIjoxNDE0NDI4MTMwNzA5MjMwLCJvaWxfdXJsZ2VuX2FwcF9pZCI6MCwiY2xpZW50X25hbWUiOiJ1bmtub3duIiwieHB2X2Fzc2V0X2lkIjoxMzk0Mjc3NTUyNjA3NzcxLCJhc3NldF9hZ2VfZGF5cyI6MCwidmlfdXNlY2FzZV9pZCI6MTAxMjIsImR1cmF0aW9uX3MiOjE1LCJiaXRyYXRlIjoyNzA2NzU4LCJ1cmxnZW5fc291cmNlIjoid3d3In0%3D&amp;ccb=17-1&amp;_nc_gid=F5l50a2SiT49nW5CPxf4Pw&amp;_nc_ss=79289&amp;_nc_zt=28&amp;oh=00_Af8Q0bVOHdcFuSYPQY-YoNwFG0DkvJhyCU616ONU_T_heA&amp;oe=6A396890</BaseURL><SegmentBase indexRange=\"826-905\" timescale=\"15360\" FBFirstSegmentRange=\"906-1901964\" FBPrefetchHighlightRange=\"3350528-5172219\"><Initialization range=\"0-825\"/></SegmentBase></Representation></AdaptationSet><AdaptationSet id=\"1\" contentType=\"audio\" subsegmentStartsWithSAP=\"1\" subsegmentAlignment=\"true\"><Representation id=\"1394277805941079a\" bandwidth=\"86619\" codecs=\"mp4a.40.5\" mimeType=\"audio/mp4\" FBAvgBitrate=\"86619\" audioSamplingRate=\"44100\" FBEncodingTag=\"dash_ln_heaac_vbr3_audio\"><AudioChannelConfiguration schemeIdUri=\"urn:mpeg:dash:23003:3:audio_channel_configuration:2011\" value=\"2\"/><BaseURL>https://video-lax7-1.xx.fbcdn.net/o1/v/t2/f2/m412/AQO7G-mJtES_1HntZ66fXT0UWnIgZFzyWFEluyhJOK8Sx8L3nedMPIFyjmJ9kZrN0KuYs9p_6ehSKag97N38e-meXpW4uhnuf5W1Vfw.mp4?_nc_cat=1&amp;_nc_sid=9ca052&amp;_nc_ht=video-lax7-1.xx.fbcdn.net&amp;_nc_ohc=pyn3eDGQ0AkQ7kNvwGIrVxh&amp;efg=eyJ2ZW5jb2RlX3RhZyI6ImRhc2hfbG5faGVhYWNfdmJyM19hdWRpbyIsInZpZGVvX2lkIjoxNDE0NDI4MTMwNzA5MjMwLCJvaWxfdXJsZ2VuX2FwcF9pZCI6MCwiY2xpZW50X25hbWUiOiJ1bmtub3duIiwieHB2X2Fzc2V0X2lkIjoxMzk0Mjc3NTUyNjA3NzcxLCJhc3NldF9hZ2VfZGF5cyI6MCwidmlfdXNlY2FzZV9pZCI6MTAxMjIsImR1cmF0aW9uX3MiOjE1LCJiaXRyYXRlIjo4NzA5NCwidXJsZ2VuX3NvdXJjZSI6Ind3dyJ9&amp;ccb=17-1&amp;_nc_gid=F5l50a2SiT49nW5CPxf4Pw&amp;_nc_ss=79289&amp;_nc_zt=28&amp;oh=00_Af8qiWJnaAl79AdGu23mVfo--guABv0pFzehB1hmtz9FYg&amp;oe=6A3984B2</BaseURL><SegmentBase indexRange=\"824-951\" timescale=\"44100\" FBFirstSegmentRange=\"952-24838\" FBPrefetchHighlightRange=\"134273-157673\"><Initialization range=\"0-823\"/></SegmentBase></Representation></AdaptationSet></Period></MPD>\n",
        "dashPrefetchExperimental": [
          "1394287725940087v",
          "1394277805941079a"
        ],
        "captionsAvailableLocales": [
          {
            "localized_creation_method": "अपने आप अनुवाद किया गया",
            "captions_url": "https://scontent-lax3-2.xx.fbcdn.net/v/t39.2093-6/725127009_1414449764040400_2847647080921082844_n.srt?_nc_cat=107&ccb=1-7&_nc_sid=c211c2&_nc_ohc=DK8DmEtjmH4Q7kNvwHa-c74&_nc_oc=AdoZ2oUpGVXRIZ1L9fIpjiESL6WL_E04EyrW7cbLGJ8UdNZpKMbnRehE8tt76H-acAA&_nc_zt=14&_nc_ht=scontent-lax3-2.xx&_nc_gid=F5l50a2SiT49nW5CPxf4Pw&_nc_ss=79289&oh=00_Af_pbRBNdjsQoSFhum2zvrWq2Dqcny1HtzPJzBKi8yw9fg&oe=6A39733D",
            "locale": "hi_IN",
            "localized_language": "हिन्दी",
            "localized_country": null
          },
          {
            "localized_creation_method": "Terjemahan otomatis",
            "captions_url": "https://scontent-lax7-1.xx.fbcdn.net/v/t39.2093-6/724362655_1414449774040399_2724423530436092790_n.srt?_nc_cat=101&ccb=1-7&_nc_sid=c211c2&_nc_ohc=lX7EaQhtlL0Q7kNvwHy5x9g&_nc_oc=AdooI3eHQz0167dKe4T3JNc88iiW08erHZeEdPbfd9Va5v4qrs0PSkCc2SafoyftHGo&_nc_zt=14&_nc_ht=scontent-lax7-1.xx&_nc_gid=F5l50a2SiT49nW5CPxf4Pw&_nc_ss=79289&oh=00_Af9JENqrmdj1h3ZKwwbabhQSve8UUIEO_KRd618fNKHI9A&oe=6A395A28",
            "locale": "id_ID",
            "localized_language": "Bahasa Indonesia",
            "localized_country": null
          },
          {
            "localized_creation_method": "Traducido automáticamente",
            "captions_url": "https://scontent-lax3-1.xx.fbcdn.net/v/t39.2093-6/721860328_1414449757373734_7233204234745075305_n.srt?_nc_cat=110&ccb=1-7&_nc_sid=c211c2&_nc_ohc=j1NtcNYieJkQ7kNvwGZ2nZr&_nc_oc=AdqxmHds-UQd6KJxBpZ3_EoUlzxIdrVALCvI9Ppxl5Ar6lHYP6kVTlgdvepSTK1za4Q&_nc_zt=14&_nc_ht=scontent-lax3-1.xx&_nc_gid=F5l50a2SiT49nW5CPxf4Pw&_nc_ss=79289&oh=00_Af8FF66zQ1H4AsrtwoUG-HG5HFV86aU9gK_9BZrJ0zjOWg&oe=6A396822",
            "locale": "es_LA",
            "localized_language": "Español",
            "localized_country": null
          },
          {
            "localized_creation_method": "Traduzido automaticamente",
            "captions_url": "https://scontent-lax3-1.xx.fbcdn.net/v/t39.2093-6/722703299_1414449767373733_976037612303144994_n.srt?_nc_cat=104&ccb=1-7&_nc_sid=c211c2&_nc_ohc=YdeA_eI5OakQ7kNvwFIGQSF&_nc_oc=AdrlSskezFlMXIzZux4iJJbdwXN8tPFTgde76TaZBaX-EaSCYsbzT5aT7MHev4aUR-w&_nc_zt=14&_nc_ht=scontent-lax3-1.xx&_nc_gid=F5l50a2SiT49nW5CPxf4Pw&_nc_ss=79289&oh=00_Af-_G2L2jpynyfHjfOFKC_Jhcbu87mLHeotvDB-stRxr-A&oe=6A3974AB",
            "locale": "pt_PT",
            "localized_language": "Português",
            "localized_country": null
          }      
        ],
        "liveViewerCount": 0,
        "publishTime": 1781720936,
        "isLiveStreaming": false,
        "isGamingVideo": false,
        "loopCount": 6,
        "isSpherical": false
      }
    ],
    "comments": [
      {
        "commentId": "Y29tbWVudDoxNTQ3MjkyNTI3NDQyNzYyXzgzNjIyNTU5OTU2NzQ1NA==",
        "commentFbid": "836225599567454",
        "url": "https://www.facebook.com/reel/1414428130709230/?comment_id=836225599567454",
        "text": "Reminds  of childhood. The things that made so much sense to us",
        "createdAt": 1781721232,
        "depth": 0,
        "authorId": "100003784750118",
        "authorName": "Patrick Egede",
        "authorShortName": null,
        "authorUrl": "https://www.facebook.com/prime.primus.1",
        "authorProfileImage": "https://scontent-sjc3-1.xx.fbcdn.net/v/t39.30808-1/355310407_2851978548271609_2747363341732961911_n.jpg?stp=cp6_dst-jpg_s32x32_tt6&_nc_cat=105&ccb=1-7&_nc_sid=1d2534&_nc_ohc=1QdsuydgpOYQ7kNvwEKPmrR&_nc_oc=AdrAsSLTi_f2NhSgO6GT9A2fQHbX2dOiiarttPpKingtz3xzoB7bo_Eg7GtkWcBugbw&_nc_zt=24&_nc_ht=scontent-sjc3-1.xx&_nc_gid=do6YsWeOrEM2iUSN8tTnIw&_nc_ss=79289&oh=00_Af_bP7VtDkuII855PLTFBszWvhnyKnLYSb_MrPEKJkBTcQ&oe=6A39612D",
        "authorVerified": false,
        "isAuthorOriginalPoster": null,
        "reactionCount": 43,
        "reactionBreakdown": {
          "like": 29,
          "love": 12,
          "care": 0,
          "haha": 0,
          "wow": 0,
          "sad": 1,
          "angry": 1
        },
        "replyCount": 6,
        "attachments": [],
        "hasMoreReplies": true,
        "repliesCursor": null,
        "expansionToken": "MjoxNzgxNzY3NjA5OgF_MBG8_aFHifEmaLgUa_UKIoAmkBIkgSuxtNywKVpROTexWE5UfUdzLs0BBK53reiJ2wwXjzdbx7En6wfvzEKKRK91jrjKMAO8jZ7ttQbq5ToqBRozXCAuBncgzJNSIJ235RRhOzC29pZeWm5r6keyaHPopWDIGUiiGmOK6AYnWcPOSbitwIP-xgym62N_l8xpgub0MsThv_0XHjNm7wDfyMcxqpS_ssZTzBngxBLzkM6PGjdDcdQo5FzqYgbEFqb26GFBpWrJSuF2HmDaiHJpKSwfroFyXjQvvL8HWgGDYiF6M7AO0gIuBxpapvafY0v3mCkWqY1fCx_YccL1n0b40HU5c-PtvIUA5K10I0H7eKuUu0jHqvIARtkJpDkC3kfJ0zdp8QB7upakgX80qRdVdgGOcXp8as8vXtz_QPTD93xFiWIJufJ_5s_-KrTmgpvYm7ati-88JZQJ9kdke9jnaYiO0qr2A5GtNLnv7VJnSUxmBaGmFL1JPzuvmDSqDw37SH0UvDsj8MPIYsgdXliDThK7WbbDbtaudF902h-yOW6VQGCJcEISEDVZYSGT1XIwU0hAl3vqQqcKAPdcHMNmxW38ZO6uIyjhZOf388m_d7Ai7XHejGdlsaeyvgVwR5bfT_go63bsZdY",
        "replies": []
      }     
    ]
  },
```

***

### ⚙️ Input Options

| Input | Type | Description |
|---|---|---|
| `profiles` | array | Facebook usernames (e.g. `facebook`), profile URLs, page URLs, or `profile.php?id=...` URLs |
| `resultsPerProfile` | number | Maximum number of posts to collect from each profile or page |
| `includeComments` | boolean | Enable comments scraping for collected posts |
| `commentsSortOrder` | string | Sort comments by most relevant, newest, or collect all available comments |
| `commentsLimit` | number | Maximum number of comments to collect per post |

***

### 💬 Comments Scraping

Comments scraping is optional and can be enabled using `includeComments`.

Use `commentsLimit` to control how many comments are collected per post and `commentsSortOrder` to choose how comments are sorted.

Currently, the actor collects top-level comments for each post. Nested replies are not included in the returned comments dataset.

***

### ⚡ Apify Resurrect Run Support

The actor supports Apify resurrect runs for interrupted or partially completed scraping jobs.

If a run stops unexpectedly, the resurrected run can continue from the same scraping position instead of starting over.

***

### 💰 How Much Does It Cost?

| Feature | Free Apify Users | Paid Apify Users |
|----------|----------|----------|
| Posts Scraping | $4 per 1,000 results | $2 per 1,000 results |
| Comments Scraping | $2.50 per comments | $1.50 per 1,000 comments |
| Profile Limit | Includes 2 profiles for testing | Unlimited profiles |
| Posts Limit | 20 Posts per profile | Unlimited |
| Comments Limit | 20 comments per post | Unlimited |

💡 Start with a small test run to verify the output structure and estimate usage before launching larger scraping jobs.

Free users can unlock comments scraping, unlimited profiles, and higher limits by upgrading their Apify subscription: https://apify.com/pricing

***

### ⚠️ Limitations & Troubleshooting

- **No results returned**\
  Only public Facebook profiles, pages, and publicly accessible content can be scraped.

- **Delayed output appearance**\
  For runs with large post or comment limits, results may take longer to appear in the dataset while posts are enriched with their associated comments.

- **Fewer comments than requested**\
  If a post contains fewer comments than the configured `commentsLimit`, only the available comments can be returned.

- **Missing data**\
  Available fields, engagement metrics, comments, and media information may vary depending on Facebook's response and content availability.

- **Unable to access some content**\
  Deleted, unavailable, private, age-restricted, region-restricted, or removed content cannot be accessed.

- **Top-level comments only**\
  The actor currently collects top-level comments for each post. Nested replies are not included in the returned comments dataset.

***

### ❓ Frequently Asked Questions

#### Can I scrape Facebook comments along with posts?

Yes. The actor can optionally collect comments together with each scraped post, eliminating the need to run a separate comments scraper and manually combine datasets.

#### Can I scrape Facebook pages and personal profiles?

Yes. Simply provide one or more public Facebook page or profile URLs and the actor will process them within a single run.

#### Does this scraper require Facebook login, cookies, or API access?

No. The actor works without Facebook account logins, cookies, access tokens, API keys, or manual session management.

#### Can I export Facebook data to CSV or Excel?

Yes. Data collected by the actor is stored in an Apify dataset and can be exported to CSV, Excel, JSON, XML, HTML, RSS, and other formats supported by Apify.

***

### 💬 Support

Check the troubleshooting section above before opening an issue.

For bug reports, scraping issues, or feature requests, please open an [issues](https://console.apify.com/organization/XjtvaC9MoQZuFl4Da/actors/GuEcd6hMuhxlrXRVG/issues) on the actor page.

If you need custom scraper modifications, automation workflows, or additional extraction features, feel free to contact:

📧 kamakrazeekaushik@gmail.com

When reporting issues, please include the Actor Run ID or relevant run logs to help speed up debugging.

***

### 🔗 Related Actors

- 📸 [Instagram Profile Posts & Comments Scraper](https://apify.com/krazee_kaushik/instagram-profile-posts-and-comments-scraper) - Scrape Instagram posts from multiple profiles in one run, including comments for every post. Configure comment limits and sorting options without using a separate comments scraper.

- 🤳 [Instagram Bulk Profile Scraper](https://apify.com/krazee_kaushik/instagram-bulk-profile-scraper) - Bulk scrape and enrich thousands of Instagram profiles for lead generation, audience research, and influencer discovery.

- 📸 [Instagram Comments Extractor](https://apify.com/krazee_kaushik/instagram-comments-extractor) - Scrape comments directly from specific Instagram post and Reel URLs with configurable comment limits and sorting options.

- 🧵 [X Thread & Reply Scraper](https://apify.com/krazee_kaushik/x-thread-scraper) - Scrape X threads with replies and conversation structure for discussion and sentiment analysis.

# Actor input Schema

## `profiles` (type: `array`):

Enter one or more Facebook usernames, profile URLs, page URLs, or profile.php?id=... URLs. Post URLs are not supported.

## `resultsPerProfile` (type: `integer`):

Number of posts to scrape for each profile or page.

## `includeComments` (type: `boolean`):

Fetch comments for each post.

## `commentsSortOrder` (type: `string`):

Choose how comments should be ordered before scraping.

## `commentsLimit` (type: `integer`):

Number of comments to scrape per post. Used only when Include Comments? is enabled.

## Actor input object example

```json
{
  "profiles": [
    "facebook",
    "https://www.facebook.com/NASA",
    "https://www.facebook.com/cristiano",
    "https://www.facebook.com/profile.php?id=100044457093571"
  ],
  "resultsPerProfile": 50,
  "includeComments": false,
  "commentsSortOrder": "RANKED_FILTERED_INTENT_V1",
  "commentsLimit": 20
}
```

# 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 = {
    "profiles": [
        "facebook",
        "https://www.facebook.com/NASA",
        "https://www.facebook.com/cristiano",
        "https://www.facebook.com/profile.php?id=100044457093571"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("krazee_kaushik/facebook-posts-and-comments-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 = { "profiles": [
        "facebook",
        "https://www.facebook.com/NASA",
        "https://www.facebook.com/cristiano",
        "https://www.facebook.com/profile.php?id=100044457093571",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("krazee_kaushik/facebook-posts-and-comments-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "profiles": [
    "facebook",
    "https://www.facebook.com/NASA",
    "https://www.facebook.com/cristiano",
    "https://www.facebook.com/profile.php?id=100044457093571"
  ]
}' |
apify call krazee_kaushik/facebook-posts-and-comments-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=krazee_kaushik/facebook-posts-and-comments-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Facebook Posts & Comments Scraper",
        "description": "Scrape Facebook posts, photos, videos, and reels from multiple profiles and pages. Process 50+ posts per minute and collect hundreds of comments per post in seconds with configurable limits and sorting. No login, cookies, or API keys required.",
        "version": "0.0",
        "x-build-id": "USxrFDYyB6TfTvsgU"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/krazee_kaushik~facebook-posts-and-comments-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-krazee_kaushik-facebook-posts-and-comments-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/krazee_kaushik~facebook-posts-and-comments-scraper/runs": {
            "post": {
                "operationId": "runs-sync-krazee_kaushik-facebook-posts-and-comments-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/krazee_kaushik~facebook-posts-and-comments-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-krazee_kaushik-facebook-posts-and-comments-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "profiles": {
                        "title": "Facebook Profiles, Pages, or Usernames",
                        "type": "array",
                        "description": "Enter one or more Facebook usernames, profile URLs, page URLs, or profile.php?id=... URLs. Post URLs are not supported.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "resultsPerProfile": {
                        "title": "Results Per Profile",
                        "minimum": 1,
                        "type": "integer",
                        "description": "Number of posts to scrape for each profile or page.",
                        "default": 50
                    },
                    "includeComments": {
                        "title": "Include Comments?",
                        "type": "boolean",
                        "description": "Fetch comments for each post.",
                        "default": false
                    },
                    "commentsSortOrder": {
                        "title": "Comments Sort Order",
                        "enum": [
                            "RANKED_FILTERED_INTENT_V1",
                            "REVERSE_CHRONOLOGICAL_UNFILTERED_INTENT_V1",
                            "RANKED_UNFILTERED_CHRONOLOGICAL_REPLIES_INTENT_V1"
                        ],
                        "type": "string",
                        "description": "Choose how comments should be ordered before scraping.",
                        "default": "RANKED_FILTERED_INTENT_V1"
                    },
                    "commentsLimit": {
                        "title": "Number of Comments",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Number of comments to scrape per post. Used only when Include Comments? is enabled.",
                        "default": 20
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
