# Facebook Page & Profile Posts Scraper with All Reactions (`alpha-scraper/facebook-page-profile-posts-scraper-with-all-reactions`) Actor

Extract detailed Facebook posts data from public pages and profiles.post scraper, posts scraper, page scraper, profile scraper, page posts, profile posts, page data, profile data, feed scraper, timeline scraper, public posts,data extractor,post extractor, post data, page url, profile url, username,

- **URL**: https://apify.com/alpha-scraper/facebook-page-profile-posts-scraper-with-all-reactions.md
- **Developed by:** [Alpha Scraper](https://apify.com/alpha-scraper) (community)
- **Categories:** Social media, Lead generation, SEO tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.99 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

---

## 🚀 Facebook Page & Profile Posts Scraper with All Reactions


#### 📊 Extract Detailed Facebook Posts Data from Pages & Profiles

The **Facebook Posts Data Extractor** is a powerful Facebook data collection tool that allows you to extract detailed public post information from one or multiple Facebook pages and profiles.

Whether you are a marketer, researcher, agency, analyst, journalist, content creator, or business owner, this actor helps you collect structured Facebook post data for analysis, reporting, monitoring, lead generation, competitive research, and content intelligence.

Simply provide one or more Facebook usernames or profile/page URLs and receive rich, structured datasets containing post information, engagement metrics, media details, reactions, comments, shares, metadata, and much more.

---

#### 🎯 Why Use Facebook Posts Data Extractor?

Facebook contains an enormous amount of valuable public content.

Manually collecting post information is time-consuming and inefficient.

This actor automates the process and provides clean, structured output ready for:

✅ Market Research

✅ Competitor Analysis

✅ Brand Monitoring

✅ Social Media Analytics

✅ Content Performance Tracking

✅ Audience Research

✅ Business Intelligence

✅ Data Science Projects

✅ Content Archiving

✅ Trend Analysis

✅ Academic Research

✅ Lead Discovery

✅ Engagement Analysis

---

##### 🔥 Keywords

Facebook Posts Extractor,
Facebook Posts Scraper,
Facebook Post Data API,
Facebook Page Posts Export,
Facebook Profile Posts Export,
Facebook Engagement Data,
Facebook Reactions Extractor,
Facebook Analytics Tool,
Facebook Public Posts Data,
Facebook Marketing Data,
Facebook Content Intelligence,
Facebook Post Metadata,
Facebook Comments Data,
Facebook Shares Data,
Facebook Media Data,
Facebook Page Analytics,
Facebook Profile Analytics,
Facebook Social Media Analytics,
Facebook Dataset Export,
Facebook Research Tool,
facebook scraper
facebook post scraper,
facebook posts scraper,
facebook page scraper,
facebook profile scraper,
facebook page posts,
facebook profile posts,
facebook page data,
facebook profile data,
facebook feed scraper,
facebook timeline scraper,
facebook public posts,
facebook extractor,
facebook data extractor,
facebook automation,
facebook crawler,
facebook post extractor,
facebook post data,
facebook page url,
facebook profile url,
facebook username,
social media scraper,
lead generation,
marketing,
data extraction.

---

### ✨ Key Features

#### 🔍 Extract Posts from Facebook Profiles

Collect public posts from individual Facebook profiles.

#### 📄 Extract Posts from Facebook Pages

Collect public posts from business pages, brands, organizations, communities, and public figures.

#### 🔗 Multiple URLs Supported

Process multiple Facebook pages or profiles in a single run.

#### 📈 Engagement Metrics

Collect reaction counts, comment counts, share counts, and other engagement statistics.

#### 🖼 Media Information

Extract images, videos, media URLs, and attachment information.

#### 🎵 Music Metadata

Collect music-related metadata when available.

#### 👤 Profile Information

Retrieve page/profile information associated with each post.

#### 📅 Post Timestamps

Collect publication dates and timestamps.

#### ⚡ Bulk Extraction

Extract hundreds or thousands of posts across multiple pages.

#### 📊 Structured Output

Receive organized JSON datasets suitable for automation and analytics workflows.

---

### 📦 What Data Does This Actor Provide?

The actor provides detailed Facebook post information including:

#### 👤 Profile Details

* Profile Name
* Page Name
* Page URL
* Profile URL
* Page ID
* Profile Picture

#### 📝 Post Details

* Post ID
* Story ID
* Post URL
* Permalink URL
* Post Title
* Post Message
* Post Text
* SEO Title
* Creation Time
* Creation Timestamp
* Privacy Information

#### 🖼 Media Details

* Main Image
* Viewer Image
* Video URL
* Audio URL
* Photo Count
* Photo URLs
* Video Metadata
* Media Metadata

#### 🎵 Music Information

* Song Title
* Artist Name
* Song Video ID

#### 👍 Engagement Metrics

* Total Reactions
* Like Count
* Love Count
* Haha Count
* Wow Count
* Care Count
* Sad Count
* Angry Count
* Comment Count
* Share Count
* Video View Count

#### 🔗 Additional Links

* Facebook Post URL
* Permalink URL
* Related URLs

#### 📎 Attachments

* Photos
* Videos
* Media Attachments
* Attachment URLs
* Attachment Metadata

---

### 📋 Output Fields Explained

### Profile Information

| Field          | Description                     |
| -------------- | ------------------------------- |
| name           | Profile or page name            |
| pageUrl        | Facebook page/profile URL       |
| profilePicture | Profile image URL               |
| pageId         | Unique Facebook page/profile ID |

---

### Post Information

| Field              | Description                  |
| ------------------ | ---------------------------- |
| id                 | Unique story identifier      |
| post_id            | Facebook post identifier     |
| story_id           | Story identifier             |
| url                | Post URL                     |
| post_url           | Direct post URL              |
| permalink_url      | Permanent Facebook post link |
| title              | Post title                   |
| display_title      | Display title                |
| message            | Main post content            |
| seo_title          | SEO title when available     |
| creation_time      | Original creation time       |
| creation_timestamp | Formatted timestamp          |
| privacy            | Privacy setting information  |

---

### Media Information

| Field            | Description               |
| ---------------- | ------------------------- |
| image            | Main image URL            |
| viewer_image     | Viewer image URL          |
| photo_count      | Total number of photos    |
| photo_urls       | List of photo URLs        |
| video            | Video URL                 |
| audio_url        | Audio URL                 |
| associated_video | Related video information |
| is_playable      | Indicates playable media  |

---

### Music Information

| Field         | Description            |
| ------------- | ---------------------- |
| title         | Song title             |
| artist        | Music artist           |
| song_video_id | Music video identifier |

---

### Engagement Information

| Field            | Description        |
| ---------------- | ------------------ |
| reaction_count   | Total reactions    |
| like_count       | Like reactions     |
| love_count       | Love reactions     |
| haha_count       | Haha reactions     |
| wow_count        | Wow reactions      |
| care_count       | Care reactions     |
| sad_count        | Sad reactions      |
| angry_count      | Angry reactions    |
| comment_count    | Number of comments |
| share_count      | Number of shares   |
| video_view_count | Video views        |

---

### 🛠 Input Example

```json
{
  "usernames": [
    "Cristiano",
    "LeonardoDiCaprio"
  ],

  "urls": [
    "https://www.facebook.com/tweakedmotorsports",
    "https://web.facebook.com/pythonclcoding"
  ],

  "maxItemsPerUrl": 100
}
````

***

### 📤 Output Example ( just a single post data here )

```json
[
  {
    "url": "https://www.facebook.com/Cristiano",
    "name": "Cristiano Ronaldo",
    "pageUrl": "https://www.facebook.com/Cristiano",
    "profilePicture": "",
    "postText": "Uma vitória de milhões!",
    "pageId": "100044296486382",
    "post": {
      "id": "UzpfSTEwMDA0NDI5NjQ4NjM4MjoxNjgzODUzMjI5NzY3ODc3OjE2ODM4NTMyMjk3Njc4Nzc=",
      "post_id": "1683853229767877",
      "story_id": "UzpfSTEwMDA0NDI5NjQ4NjM4MjoxNjgzODUzMjI5NzY3ODc3OjE2ODM4NTMyMjk3Njc4Nzc=",
      "url": "https://www.facebook.com/Cristiano/posts/pfbid02rxvfPnk6oYq45FujPY1h9wsACtmKVPvHUvbWmHwtuRV9J6aDyvt4pcsNqGaY1B8hl",
      "post_url": "https://www.facebook.com/Cristiano/posts/pfbid02rxvfPnk6oYq45FujPY1h9wsACtmKVPvHUvbWmHwtuRV9J6aDyvt4pcsNqGaY1B8hl",
      "permalink_url": "https://www.facebook.com/Cristiano/posts/pfbid02rxvfPnk6oYq45FujPY1h9wsACtmKVPvHUvbWmHwtuRV9J6aDyvt4pcsNqGaY1B8hl",
      "title": null,
      "display_title": null,
      "message": "Uma vitória de milhões!",
      "seo_title": "Uma vitória de milhões",
      "seo_llm_title": null,
      "creation_time": 1783707234,
      "creation_timestamp": "2026-07-10T18:13:54Z",
      "privacy": null
    },
    "media": {
      "image": null,
      "viewer_image": null,
      "photo_count": 2,
      "photo_urls": [
        "https://scontent.fcgh69-1.fna.fbcdn.net/v/t39.99422-6/743497240_1268623201870018_1504448116971137776_n.png?stp=dst-jpg_tt6&cstp=mx1100x757&ctp=s843x403&_nc_cat=1&ccb=1-7&_nc_sid=127cfc&_nc_ohc=o4S3I7_K6aEQ7kNvwGwGiP6&_nc_oc=AdrNVAe8OQwMQFsxAiNrcl3WhmKW-oJLsZfa5mjUnEBB6kPRwGI3GuCg087AAulmzI4&_nc_zt=14&_nc_ht=scontent.fcgh69-1.fna&_nc_gid=-pVlq36WyvDsM679xgMaUQ&_nc_ss=7d289&oh=00_AQB5Qik2Jz7Fqto6Ss3Ci7XXsXSpxKGeZ6l_6kp7zh_vwA&oe=6A5B8BC7",
        "https://scontent.fcgh69-1.fna.fbcdn.net/v/t39.99422-6/744109107_1042652254820040_2165388457629684431_n.png?stp=dst-jpg_tt6&cstp=mx1409x969&ctp=s843x403&_nc_cat=1&ccb=1-7&_nc_sid=127cfc&_nc_ohc=DGZwfvdaoZYQ7kNvwFphbEF&_nc_oc=AdokjdZy8IRP_2cnyeSV7RFKWoA4urRo7vrfNF8mQYkmPzFtG117U_89qSfgKunHFEI&_nc_zt=14&_nc_ht=scontent.fcgh69-1.fna&_nc_gid=-pVlq36WyvDsM679xgMaUQ&_nc_ss=7d289&oh=00_AQBqg_PJ5j-f0QXEX7bDWOy4uJlbyfiPFNGjn3FCHh06xw&oe=6A5BA310"
      ],
      "video": null,
      "video_override_url": null,
      "associated_video": null,
      "audio_url": null,
      "is_playable": null,
      "story_media_metadata": null
    },
    "music": {
      "title": null,
      "artist": null,
      "song_video_id": null
    },
    "engagement": {
      "reaction_count": 1801918,
      "aggregated_reaction_count": null,
      "i18n_reaction_count": "1.8M",
      "ig_reaction_count": null,
      "top_reactions": [
        {
          "visible_in_bling_bar": true,
          "node": {
            "id": "1635855486666999",
            "localized_name": "Like"
          },
          "i18n_reaction_count": "933K",
          "reaction_count": 933416
        },
        {
          "visible_in_bling_bar": true,
          "node": {
            "id": "1678524932434102",
            "localized_name": "Love"
          },
          "i18n_reaction_count": "530K",
          "reaction_count": 530471
        },
        {
          "visible_in_bling_bar": true,
          "node": {
            "id": "115940658764963",
            "localized_name": "Haha"
          },
          "i18n_reaction_count": "251K",
          "reaction_count": 251724
        },
        {
          "visible_in_bling_bar": false,
          "node": {
            "id": "613557422527858",
            "localized_name": "Care"
          },
          "i18n_reaction_count": "83K",
          "reaction_count": 83094
        },
        {
          "visible_in_bling_bar": false,
          "node": {
            "id": "478547315650144",
            "localized_name": "Wow"
          },
          "i18n_reaction_count": "1.4K",
          "reaction_count": 1411
        },
        {
          "visible_in_bling_bar": false,
          "node": {
            "id": "908563459236466",
            "localized_name": "Sad"
          },
          "i18n_reaction_count": "1.4K",
          "reaction_count": 1407
        },
        {
          "visible_in_bling_bar": false,
          "node": {
            "id": "444813342392137",
            "localized_name": "Angry"
          },
          "i18n_reaction_count": "395",
          "reaction_count": 395
        }
      ],
      "top_reaction": {
        "visible_in_bling_bar": true,
        "node": {
          "id": "1635855486666999",
          "localized_name": "Like"
        },
        "i18n_reaction_count": "933K",
        "reaction_count": 933416
      },
      "reactions": [
        {
          "name": "Like",
          "count": 933416,
          "i18n": "933K"
        },
        {
          "name": "Love",
          "count": 530471,
          "i18n": "530K"
        },
        {
          "name": "Haha",
          "count": 251724,
          "i18n": "251K"
        },
        {
          "name": "Care",
          "count": 83094,
          "i18n": "83K"
        },
        {
          "name": "Wow",
          "count": 1411,
          "i18n": "1.4K"
        },
        {
          "name": "Sad",
          "count": 1407,
          "i18n": "1.4K"
        },
        {
          "name": "Angry",
          "count": 395,
          "i18n": "395"
        }
      ],
      "like_count": 933416,
      "love_count": 530471,
      "haha_count": 251724,
      "wow_count": 1411,
      "care_count": 83094,
      "sad_count": 1407,
      "angry_count": 395,
      "comment_count": 141390,
      "aggregated_comment_count": null,
      "interesting_top_level_comments": [
        {
          "comment": {
            "id": "Y29tbWVudDoxNjgzODUzMjI5NzY3ODc3XzIwOTY5NzgwMzQ1ODA4MjQ=",
            "legacy_fbid": "2096978034580824",
            "depth": 0,
            "body": {
              "text": "Funny how the World Cup suddenly becomes 'smaller' after Messi won it. 😂🐐",
              "ranges": []
            },
            "attachments": [],
            "is_markdown_enabled": false,
            "community_comment_signal_renderer": null,
            "comment_menu_tooltip": null,
            "should_show_comment_menu": false,
            "author": {
              "__typename": "User",
              "id": "pfbid026bpu8jS7VJLurj1g6VNJh4vWur5hC4UTykDThfXWhdSFGrA8FcQrgVsrqTAh4GQ3l",
              "name": "Ali Khusroo",
              "__isActor": "User",
              "profile_picture_depth_0": {
                "uri": "https://scontent.fcgh69-1.fna.fbcdn.net/v/t39.30808-1/675872105_4381463858781026_3655295900163669642_n.jpg?stp=cp0_dst-jpg_tt6&cstp=mx1440x1440&ctp=s32x32&_nc_cat=106&ccb=1-7&_nc_sid=e99d92&_nc_ohc=LPnyUy__cSwQ7kNvwGV7ycm&_nc_oc=AdpZ5rdV8ppuyMG89_HoydyctWjuHAymkXlp1yLiWmIhf5Z3dM1EdWSrrUW4clB-LOE&_nc_zt=24&_nc_ht=scontent.fcgh69-1.fna&_nc_gid=-pVlq36WyvDsM679xgMaUQ&_nc_ss=7d289&oh=00_AQAvDJH13oemxBHLkEcH8DfTVFwWagrJgrdJ09bgS_3KUg&oe=6A5B96E1"
              },
              "profile_picture_depth_0_increased": {
                "uri": "https://scontent.fcgh69-1.fna.fbcdn.net/v/t39.30808-1/675872105_4381463858781026_3655295900163669642_n.jpg?stp=cp0_dst-jpg_tt6&cstp=mx1440x1440&ctp=s40x40&_nc_cat=106&ccb=1-7&_nc_sid=e99d92&_nc_ohc=LPnyUy__cSwQ7kNvwGV7ycm&_nc_oc=AdpZ5rdV8ppuyMG89_HoydyctWjuHAymkXlp1yLiWmIhf5Z3dM1EdWSrrUW4clB-LOE&_nc_zt=24&_nc_ht=scontent.fcgh69-1.fna&_nc_gid=-pVlq36WyvDsM679xgMaUQ&_nc_ss=7d289&oh=00_AQAvDJH13oemxBHLkEcH8DfTVFwWagrJgrdJ09bgS_3KUg&oe=6A5B96E1"
              },
              "profile_picture_depth_1": {
                "uri": "https://scontent.fcgh69-1.fna.fbcdn.net/v/t39.30808-1/675872105_4381463858781026_3655295900163669642_n.jpg?stp=cp0_dst-jpg_tt6&cstp=mx1440x1440&ctp=s24x24&_nc_cat=106&ccb=1-7&_nc_sid=e99d92&_nc_ohc=LPnyUy__cSwQ7kNvwGV7ycm&_nc_oc=AdpZ5rdV8ppuyMG89_HoydyctWjuHAymkXlp1yLiWmIhf5Z3dM1EdWSrrUW4clB-LOE&_nc_zt=24&_nc_ht=scontent.fcgh69-1.fna&_nc_gid=-pVlq36WyvDsM679xgMaUQ&_nc_ss=7d289&oh=00_AQAvDJH13oemxBHLkEcH8DfTVFwWagrJgrdJ09bgS_3KUg&oe=6A5B96E1"
              },
              "gender": "MALE",
              "__isEntity": "User",
              "url": "https://www.facebook.com/ali.khusroo.7",
              "work_info": null
            },
            "is_author_weak_reference": false,
            "comment_action_links": [
              {
                "__typename": "XFBCommentTimeStampActionLink",
                "comment": {
                  "id": "Y29tbWVudDoxNjgzODUzMjI5NzY3ODc3XzIwOTY5NzgwMzQ1ODA4MjQ=",
                  "created_time": 1783708123,
                  "url": "https://www.facebook.com/Cristiano/posts/pfbid02rxvfPnk6oYq45FujPY1h9wsACtmKVPvHUvbWmHwtuRV9J6aDyvt4pcsNqGaY1B8hl?comment_id=2096978034580824"
                },
                "__module_operation_CometUFICommentActionLinks_comment": {
                  "__dr": "CometUFICommentTimeStampActionLink_commentActionLink$normalization.graphql"
                },
                "__module_component_CometUFICommentActionLinks_comment": {
                  "__dr": "CometUFICommentTimeStampActionLink.react"
                }
              }
            ],
            "feedback": {
              "viewer_feedback_reaction_info": null,
              "id": "ZmVlZGJhY2s6MTY4Mzg1MzIyOTc2Nzg3N18yMDk2OTc4MDM0NTgwODI0",
              "top_reactions": {
                "edges": [
                  {
                    "visible_in_bling_bar": true,
                    "node": {
                      "id": "1635855486666999"
                    },
                    "reaction_count": 6791
                  },
                  {
                    "visible_in_bling_bar": true,
                    "node": {
                      "id": "115940658764963"
                    },
                    "reaction_count": 2457
                  },
                  {
                    "visible_in_bling_bar": false,
                    "node": {
                      "id": "1678524932434102"
                    },
                    "reaction_count": 150
                  },
                  {
                    "visible_in_bling_bar": false,
                    "node": {
                      "id": "613557422527858"
                    },
                    "reaction_count": 42
                  },
                  {
                    "visible_in_bling_bar": false,
                    "node": {
                      "id": "444813342392137"
                    },
                    "reaction_count": 24
                  },
                  {
                    "visible_in_bling_bar": false,
                    "node": {
                      "id": "478547315650144"
                    },
                    "reaction_count": 9
                  },
                  {
                    "visible_in_bling_bar": false,
                    "node": {
                      "id": "908563459236466"
                    },
                    "reaction_count": 9
                  }
                ]
              },
              "reactors": {
                "count_reduced": "9.4K"
              },
              "total_reply_count": 411,
              "url": "https://www.facebook.com/Cristiano/posts/pfbid02rxvfPnk6oYq45FujPY1h9wsACtmKVPvHUvbWmHwtuRV9J6aDyvt4pcsNqGaY1B8hl?comment_id=2096978034580824",
              "__typename": "Feedback",
              "if_viewer_can_comment_anonymously": null,
              "if_viewer_has_locked_actor": null,
              "if_viewer_post_type_blocks_alternate_voice": null,
              "viewer_actor": null,
              "actor_provider": {
                "__typename": "Feedback",
                "current_actor": null,
                "id": "ZmVlZGJhY2s6MTY4Mzg1MzIyOTc2Nzg3N18yMDk2OTc4MDM0NTgwODI0"
              },
              "plugins": [
                {
                  "__typename": "CommentComposerMentionsPlugin",
                  "context_id": null,
                  "post_id": "1683853229767877",
                  "__module_operation_useCometUFIComposerPlugins_feedback": {
                    "__dr": "cometUFIComposerMentionsPlugin_plugin$normalization.graphql"
                  },
                  "__module_component_useCometUFIComposerPlugins_feedback": {
                    "__dr": "cometUFIComposerMentionsPlugin"
                  }
                },
                {
                  "__typename": "CommentComposerHashtagPlugin",
                  "__module_operation_useCometUFIComposerPlugins_feedback": {
                    "__dr": "cometUFIComposerHashtagPlugin_plugin$normalization.graphql"
                  },
                  "__module_component_useCometUFIComposerPlugins_feedback": {
                    "__dr": "cometUFIComposerHashtagPlugin"
                  }
                },
                {
                  "__typename": "CommentComposerEmojiPlugin",
                  "emoji_size": 16,
                  "__module_operation_useCometUFIComposerPlugins_feedback": {
                    "__dr": "cometUFIComposerEmojiPlugin_plugin$normalization.graphql"
                  },
                  "__module_component_useCometUFIComposerPlugins_feedback": {
                    "__dr": "cometUFIComposerEmojiPlugin"
                  }
                },
                {
                  "__typename": "CommentComposerEmoticonPlugin",
                  "emoji_size": 16,
                  "__module_operation_useCometUFIComposerPlugins_feedback": {
                    "__dr": "cometUFIComposerEmoticonPlugin_plugin$normalization.graphql"
                  },
                  "__module_component_useCometUFIComposerPlugins_feedback": {
                    "__dr": "cometUFIComposerEmoticonPlugin"
                  }
                },
                {
                  "__typename": "CommentComposerPrefillMentionPlugin",
                  "__module_operation_useCometUFIComposerPlugins_feedback": {
                    "__dr": "cometUFIComposerPrefillMentionPlugin_plugin$normalization.graphql"
                  },
                  "__module_component_useCometUFIComposerPlugins_feedback": {
                    "__dr": "cometUFIComposerPrefillMentionPlugin"
                  }
                },
                {
                  "__typename": "CommentComposerAssociateReplyWithParentPlugin",
                  "__module_operation_useCometUFIComposerPlugins_feedback": {
                    "__dr": "cometUFIComposerAssociateReplyWithParentPlugin_plugin$normalization.graphql"
                  },
                  "__module_component_useCometUFIComposerPlugins_feedback": {
                    "__dr": "cometUFIComposerAssociateReplyWithParentPlugin"
                  }
                },
                {
                  "__typename": "CommentComposerSetReplyClickedPlugin",
                  "__module_operation_useCometUFIComposerPlugins_feedback": {
                    "__dr": "cometUFIComposerSetReplyClickedPlugin_plugin$normalization.graphql"
                  },
                  "__module_component_useCometUFIComposerPlugins_feedback": {
                    "__dr": "cometUFIComposerSetReplyClickedPlugin"
                  }
                },
                {
                  "__typename": "CommentComposerStateSnapshotPlugin",
                  "__module_operation_useCometUFIComposerPlugins_feedback": {
                    "__dr": "cometUFIComposerStateSnapshotPlugin_plugin$normalization.graphql"
                  },
                  "__module_component_useCometUFIComposerPlugins_feedback": {
                    "__dr": "cometUFIComposerStateSnapshotPlugin"
                  }
                },
                {
                  "__typename": "CommentComposerCommentCharacterLimitPlugin",
                  "__module_operation_useCometUFIComposerPlugins_feedback": {
                    "__dr": "cometUFIComposerCommentCharacterLimitPlugin_plugin$normalization.graphql"
                  },
                  "__module_component_useCometUFIComposerPlugins_feedback": {
                    "__dr": "cometUFIComposerCommentCharacterLimitPlugin"
                  }
                },
                {
                  "__typename": "CommentComposerWriteToComposerPlugin",
                  "__module_operation_useCometUFIComposerPlugins_feedback": {
                    "__dr": "cometUFIComposerWriteToComposerPlugin_plugin$normalization.graphql"
                  },
                  "__module_component_useCometUFIComposerPlugins_feedback": {
                    "__dr": "cometUFIComposerWriteToComposerPlugin"
                  }
                }
              ],
              "comment_composer_placeholder": "Reply to Ali Khusroo…",
              "can_viewer_comment": false,
              "have_comments_been_disabled": false,
              "default_comment_ordering_mode": "TOPLEVEL",
              "inline_composer_visible_by_default": true,
              "comment_rendering_instance": null,
              "associated_group": null
            },
            "comment_cover": null,
            "preferred_body": {
              "__typename": "TextWithEntities",
              "delight_ranges": [],
              "image_ranges": [],
              "inline_style_ranges": [],
              "aggregated_ranges": [],
              "ranges": [],
              "color_ranges": [],
              "text": "Funny how the World Cup suddenly becomes 'smaller' after Messi won it. 😂🐐",
              "translation_type": "ORIGINAL"
            },
            "body_renderer": {
              "__typename": "TextWithEntities",
              "delight_ranges": [],
              "image_ranges": [],
              "inline_style_ranges": [],
              "aggregated_ranges": [],
              "ranges": [],
              "color_ranges": [],
              "text": "Funny how the World Cup suddenly becomes 'smaller' after Messi won it. 😂🐐",
              "__module_operation_CometUFICommentTextBodyRenderer_comment": {
                "__dr": "CometUFICommentBodyTextWithEntities_textWithEntities$normalization.graphql"
              },
              "__module_component_CometUFICommentTextBodyRenderer_comment": {
                "__dr": "CometUFICommentBodyTextWithEntities.react"
              }
            },
            "translatability_for_viewer": {
              "source_dialect": "en_XX"
            },
            "work_ama_answer_status": null,
            "group_comment_info": null,
            "bizweb_comment_info": null,
            "comet_comment_author_name_and_badges_renderer": {
              "__typename": "XFBCometCommentNameAndBadgesLegacyRenderer",
              "comment": {
                "is_declined_by_group_admin_assistant": false,
                "is_gaming_video_comment": false,
                "timestamp_in_video": null,
                "written_while_video_was_live": false,
                "author": {
                  "__typename": "User",
                  "id": "pfbid026bpu8jS7VJLurj1g6VNJh4vWur5hC4UTykDThfXWhdSFGrA8FcQrgVsrqTAh4GQ3l",
                  "is_verified": false,
                  "short_name": "Ali",
                  "subscribe_status": "CANNOT_SUBSCRIBE"
                },
                "has_constituent_badge": false,
                "can_viewer_see_subsribe_button": false,
                "id": "Y29tbWVudDoxNjgzODUzMjI5NzY3ODc3XzIwOTY5NzgwMzQ1ODA4MjQ=",
                "can_see_constituent_badge_upsell": false,
                "legacy_token": "1683853229767877_2096978034580824",
                "parent_feedback": {
                  "id": "ZmVlZGJhY2s6MTY4Mzg1MzIyOTc2Nzg3Nw==",
                  "share_fbid": "1683853229767877",
                  "political_figure_data": null,
                  "owning_profile": {
                    "__typename": "User",
                    "name": "Cristiano Ronaldo",
                    "id": "100044296486382"
                  }
                },
                "question_and_answer_type": null,
                "author_user_signals_renderer": null,
                "author_badge_renderers": [],
                "identity_badges_web": [],
                "can_show_multiple_identity_badges": false,
                "discoverable_identity_badges_web": [
                  {
                    "grey_badge_asset": "/images/assets_DO_NOT_HARDCODE/facebook_icons/diamond_filled_24_fds-spectrum-blue-gray.png",
                    "dark_mode_badge_asset": "/images/assets_DO_NOT_HARDCODE/facebook_user_signals_icons/gaming-diamond_24_fds-gray-90.png",
                    "light_mode_badge_asset": "/images/assets_DO_NOT_HARDCODE/facebook_user_signals_icons/gaming-diamond_24_fds-unified-gray-25.png",
                    "is_earned": false,
                    "information_title": "What's a top fan badge?",
                    "information_description": "Top fans are people who've earned a badge for most actively engaging with a Page or profile. The badge shows up when they comment to recognize their efforts.",
                    "is_enabled": false,
                    "is_manageable": false,
                    "serialized": "{\"type\":\"top_fan\",\"actor_id\":100007523646658,\"target_id\":100044296486382,\"surface\":\"comment\",\"media_id\":1683853229767877,\"comment_id\":2096978034580824}",
                    "identity_badge_type": "top_fan",
                    "information_button_enabled": false,
                    "information_button_uri": "",
                    "information_button_text": "See all Top Fans",
                    "tier_info": null
                  },
                  {
                    "grey_badge_asset": "/images/assets_DO_NOT_HARDCODE/facebook_icons/diamond-rise_filled_24_fds-spectrum-blue-gray.png",
                    "dark_mode_badge_asset": "/images/assets_DO_NOT_HARDCODE/facebook_icons/diamond-rise_filled_24_fds-black.png",
                    "light_mode_badge_asset": "/images/assets_DO_NOT_HARDCODE/facebook_icons/diamond-rise_filled_24_fds-black.png",
                    "is_earned": false,
                    "information_title": "What's a rising fan?",
                    "information_description": "They're people who've earned a badge for actively engaging with content from Cristiano Ronaldo and are on their way to becoming a top fan. The badge shows up when they comment to recognize their efforts.",
                    "is_enabled": true,
                    "is_manageable": false,
                    "serialized": "{\"type\":\"rising_fan\",\"actor_id\":100007523646658,\"target_id\":100044296486382,\"surface\":\"comment\",\"media_id\":1683853229767877,\"comment_id\":2096978034580824}",
                    "identity_badge_type": "rising_fan",
                    "information_button_enabled": false,
                    "information_button_uri": "",
                    "information_button_text": "See all Rising Fans",
                    "tier_info": null
                  }
                ],
                "user": {
                  "name": "Ali Khusroo",
                  "profile_picture": {
                    "uri": "https://scontent.fcgh69-1.fna.fbcdn.net/v/t39.30808-1/675872105_4381463858781026_3655295900163669642_n.jpg?stp=cp0_dst-jpg_tt6&cstp=mx1440x1440&ctp=s50x50&_nc_cat=106&ccb=1-7&_nc_sid=e99d92&_nc_ohc=LPnyUy__cSwQ7kNvwGV7ycm&_nc_oc=AdpZ5rdV8ppuyMG89_HoydyctWjuHAymkXlp1yLiWmIhf5Z3dM1EdWSrrUW4clB-LOE&_nc_zt=24&_nc_ht=scontent.fcgh69-1.fna&_nc_gid=-pVlq36WyvDsM679xgMaUQ&_nc_ss=7d289&oh=00_AQAvDJH13oemxBHLkEcH8DfTVFwWagrJgrdJ09bgS_3KUg&oe=6A5B96E1"
                  },
                  "id": "pfbid026bpu8jS7VJLurj1g6VNJh4vWur5hC4UTykDThfXWhdSFGrA8FcQrgVsrqTAh4GQ3l"
                },
                "is_viewer_comment_poster": false,
                "parent_post_story": {
                  "attachments": [
                    {
                      "media": {
                        "__typename": "Photo",
                        "__isNode": "Photo",
                        "id": "1683853206434546"
                      }
                    }
                  ],
                  "id": "UzpfSTEwMDA0NDI5NjQ4NjM4MjoxNjgzODUzMjI5NzY3ODc3OjE2ODM4NTMyMjk3Njc4Nzc="
                },
                "gen_ai_content_transparency_label_renderer_for_comment": null,
                "gen_ai_content_transparency_label_renderer": null,
                "is_live_video_comment": false
              },
              "__module_operation_CometUFICommentBody_comment": {
                "__dr": "CometUFICommentBodyNameAndBadgesLegacy_renderer$normalization.graphql"
              },
              "__module_component_CometUFICommentBody_comment": {
                "__dr": "CometUFICommentBodyNameAndBadgesLegacy.react"
              }
            },
            "comet_meta_gen_comment_source_renderer": null,
            "created_time": 1783708123,
            "translation_available_for_viewer": false,
            "inline_survey_config": null,
            "spam_display_mode": "none",
            "is_hidden_by_viewer": false,
            "attached_story": null,
            "comment_direct_parent": null,
            "if_viewer_can_see_member_page_tooltip": null,
            "is_disabled": false,
            "work_answered_event_comment_renderer": null,
            "comment_upper_badge_renderer": null,
            "elevated_comment_data": null,
            "inline_replies_expander_renderer": null
          },
          "relevant_contextual_replies": {
            "nodes": []
          }
        }
      ],
      "share_count": 25118,
      "i18n_share_count": "25K",
      "view_count": null,
      "play_count": null,
      "video_view_count": null
    },
    "feedback": {
      "feedback": "ZmVlZGJhY2s6MTY4Mzg1MzIyOTc2Nzg3Nw==",
      "viewer_feedback_reaction_info": null,
      "reaction_display_config": {
        "reaction_display_strategy": "USE_REACTION_SHEET_STRING_ONLY",
        "reaction_string_with_viewer": null,
        "reaction_string_without_viewer": null,
        "__module_operation_CometUFIReactionsCount_feedback": {
          "__dr": "CometUFIReactionSentence_reactionDisplayConfig$normalization.graphql"
        },
        "__module_component_CometUFIReactionsCount_feedback": {
          "__dr": "CometUFIReactionSentence.react"
        }
      },
      "reaction_string_with_viewer": null,
      "reaction_string_without_viewer": null,
      "can_viewer_comment": false,
      "have_comments_been_disabled": false
    },
    "links": {
      "override_url": null,
      "www_url": null
    },
    "attachments": [
      {
        "type": "photo",
        "url": "https://www.facebook.com/photo.php?fbid=1683853206434546&set=a.322648365888377&type=3",
        "id": "1683853206434546",
        "accessibilityCaption": "May be an image of football, soccer and text"
      },
      {
        "type": "photo",
        "url": "https://www.facebook.com/photo.php?fbid=1683853209767879&set=a.322648365888377&type=3",
        "id": "1683853209767879",
        "accessibilityCaption": "May be an image of soccer, football and text"
      }
    ]
  },
    .................
          .....................
                ........................
                       ................................
                       
]
```

***

### 🎯 Common Use Cases

### 📈 Social Media Analytics

Analyze Facebook content performance and audience engagement.

### 🏆 Competitor Monitoring

Track competitors' content strategy and engagement.

### 📣 Brand Intelligence

Monitor brand-related Facebook content.

### 📚 Academic Research

Collect large-scale Facebook datasets for research projects.

### 📰 Media Monitoring

Track public communication and content publishing activity.

### 📊 Marketing Reports

Generate detailed reports using Facebook post data.

### 🔥 Trend Discovery

Identify viral topics and high-performing content.

***

### 💡 Best Practices

#### ✅ Use Official Facebook URLs

Always use complete Facebook profile or page URLs whenever possible.

#### ✅ Set Reasonable Limits

Choose a suitable `maxItemsPerUrl` value based on your project requirements.

#### ✅ Process Multiple Pages Together

Combine multiple profiles/pages in a single run for efficiency.

#### ✅ Regular Monitoring

Run the actor periodically to monitor content updates and engagement changes.

#### ✅ Export Data

Export results to JSON, CSV, Excel, Google Sheets, BI tools, or databases for further analysis.

***

### ⚠ Possible Errors & Solutions

### No Data Returned

Possible causes:

- Profile does not exist
- URL is incorrect
- Profile/page has no accessible public posts

Solution:

- Verify the Facebook URL
- Verify the username spelling
- Check that public posts are available

***

### Fewer Posts Than Requested

Possible causes:

- Profile contains fewer public posts
- Older posts are unavailable

Solution:

- Try another profile/page
- Reduce the requested post count

***

### Invalid URL

Possible causes:

- Typographical errors
- Incomplete Facebook URL

Solution:

- Use the full Facebook profile/page URL
- Double-check URL formatting

***

### Missing Engagement Metrics

Possible causes:

- Metrics are not publicly available
- Facebook does not display the information publicly

Solution:

- This is expected behavior for some posts

***

### 🚀 Benefits of This Actor

✅ Fast Facebook post collection

✅ Structured and clean output

✅ Supports multiple pages and profiles

✅ Detailed engagement statistics

✅ Media information included

✅ Large-scale data extraction

✅ Analytics-ready datasets

✅ Suitable for businesses, researchers, and marketers

✅ Easy integration into workflows

✅ Ideal for monitoring public Facebook content

***

### 🌟 Who Uses This Actor?

- Digital Marketing Agencies
- Social Media Managers
- Researchers
- Journalists
- Brands
- Data Analysts
- Growth Teams
- Business Intelligence Teams
- Academic Institutions
- Content Creators
- SEO Specialists
- Competitive Intelligence Teams

***

### ⭐ Start Extracting Facebook Posts Today

Collect rich Facebook post data, engagement metrics, media information, and analytics-ready datasets from public Facebook pages and profiles with ease. Perfect for market research, competitor monitoring, brand intelligence, content analysis, and social media analytics.

***

## Here my another actors:

### Youtube Iteams:

- [🎶 Youtube Audio Downloader (Video/Shorts)](https://console.apify.com/actors/lTUPL4gmLTDNXBeWw/source)
- [Youtube Video Downloader Advanced](https://console.apify.com/actors/XOpQsUkgGZLGSCJd0/source)
- [Youtube Video Downloader ( Soundless )](https://console.apify.com/actors/gFsczW1QplIquv9eL/source)
- [Youtube Video Downloader](https://console.apify.com/actors/9kZQcUlHZRKp1ilZA/source)
- [Youtube Video Details Scraper](https://console.apify.com/actors/On4VfiWjGnT79clm1/source)
- [Youtube Transcript Ninja (Subtitles) ](https://console.apify.com/actors/eWrsJHhdeEbVHChpX/source)
- [Youtube Thumbnails Downloader & Scraper](https://console.apify.com/actors/YShot3wkL0HJdRkD0/source)
- [Youtube Tags or Hashtags Scraper](https://console.apify.com/actors/O1FU99ID2ccR5wcS8/source)
- [Youtube Tags Scraper](https://console.apify.com/actors/1wVokAhQLbbeeFVfR/source)
- [Youtube Shorts Scraper lite](https://console.apify.com/actors/bOyWDt1IbXZsadWRp/source)
- [Youtube Shorts Downloader Pro](https://console.apify.com/actors/bN1AjNRMops81rGkg/source)
- [Youtube Shorts Comments Scraper](https://console.apify.com/actors/ON1C4qgHaEQEhhEmI/source)
- [Youtube Community Posts Scraper](https://console.apify.com/actors/X38E51BParHFNaCw1/source)
- [Youtube Channel Id Scraper Pro](https://console.apify.com/actors/2uuIEovgGHcYjEKyN/source)
- [Youtube Video Transcript  Scraper ( Subtitles )](https://console.apify.com/actors/IEmSN6FkNn0tw10BA/source)
- [Youtube Video Comments Scraper](https://console.apify.com/actors/URh4zBT1aesfE8QKc/source)
- [Youtube Shorts Scraper  Pro](https://console.apify.com/actors/G4McyHJJzc2TbUSo6/source)
- [Youtube Shorts Scraper](https://console.apify.com/actors/XP0WgKweF1M83FnmR/source)
- [Youtube Channel Scraper](https://console.apify.com/actors/ufMZfwMgyHeaoDdAd/source)
- [YouTube Video Description Extractor](https://console.apify.com/actors/Xqae3CmxqT3HfHaJ5/source)
- [YouTube Hashtag Scraper](https://console.apify.com/actors/d4bYqQ0LWuczEgumx/source)
- [YouTube Description Scraper pro](https://console.apify.com/actors/OVymx0bku0C8gowB0/source)
- [YouTube Comments Scraper | Pay Per Result](https://console.apify.com/actors/ict6AecoJ85T4RthZ/source)
- [YouTube Channel ID Scraper](https://console.apify.com/actors/P9XlG8ylMGqfoelOg/source)

### Tiktok Iteams:

- [Tiktok Video Downloader](https://console.apify.com/actors/dlyQGIrqOracdqOeb/source)
- [Tiktok Video Details Scraper Pro](https://console.apify.com/actors/kZMMAHBehLOdG2FBb/source)
- [Tiktok Profile Scraper](https://console.apify.com/actors/C9mdCvPs7mDV8AYdd/source)
- [TikTok Video Scraper](https://console.apify.com/actors/7NjipRJbS73X9Io90/source)
- [TikTok Profile Videos Scraper](https://console.apify.com/actors/F6ar6Hu5STLp5mdAf/source)
- [TikTok Profile Scraper pro](https://console.apify.com/actors/3fmkMmoCBQ4SBIIAN/source)
- [TikTok Audio Downloader 🎵](https://console.apify.com/actors/jHipu7fQihSVhBE3x/source)

### Snapchat Iteams:

- [Snapchat Video Downloader (Spotlight )](https://console.apify.com/actors/yKz99HNmn4AgmhPOf/source)
- [Snapchat Video  Details Scraper (Spotlight)](https://console.apify.com/actors/fyV48EkRqcNoeq2kH/source)
- [Snapchat Followers Scraper](https://console.apify.com/actors/PxBiNYw0mgZOagGyD/source)
- [Snapchat Profile     Scraper](https://console.apify.com/actors/siCUsZdm6xmc3g7HF/source)
- [Snapchat Profile Scraper  Mini](https://console.apify.com/actors/qhkQO51Cv6iHJxdAs/source)

### Instagram Iteams:

- [Instagram video Downloader + Scraper](https://console.apify.com/actors/zIpixF6ZjlbelQDrY/source)
- [Instagram Video Downloader (Soundlss)](https://console.apify.com/actors/QQkJuhIQp4pexakls/source)
- [Instagram Thumbnail Scraper Video & Reels](https://console.apify.com/actors/z8JOosBY8hlqiUthl/source)
- [Instagram Reels  Downloader](https://console.apify.com/actors/VRbovYCWXTZXuVaN2/source)
- [Instagram Profile URL to Username Converter & Extractor](https://console.apify.com/actors/FOApkedA1VuG6ncno/source)
- [Instagram Profile Scraper](https://console.apify.com/actors/5dvorBkg7ccX95wAg/source)
- [Instagram Post Videos Downloader](https://console.apify.com/actors/h95ZexZ0ifOX4JEYQ/source)
- [Instagram Followers Scraper](https://console.apify.com/actors/c55pdH9mCE02sj7Dg/source)
- [Instagram Audio Downloader](https://console.apify.com/actors/MQRNuEHUqKreEi8gI/source)
- [Instagram Video Scraper + Downloader](https://console.apify.com/actors/63Z5eSy3IxgdIEYOX/source)
- [Instagram Video  scraper Advanced](https://console.apify.com/actors/79ng2nukXLzUn0aWg/source)
- [Instagram Video Details  scraper](https://console.apify.com/actors/VLyBXSwQpHTFwUcds/source)
- [Instagram Reels Details scraper](https://console.apify.com/actors/oGR3xfeXTuIirhdlZ/source)
- [Instagram Followers Scraper Pro](https://console.apify.com/actors/MqW3EtUZXm6OHdvcI/source)

### Facebook Iteams:

- [Facebook reels Downloader  (Separate audio or video)](https://console.apify.com/actors/nuvIRaMeRIzz3cfxK/source)
- [Facebook Video Downloader advanced](https://console.apify.com/actors/2SU8ZuABbAVFNKMZa/source)
- [Facebook Video Details Scraper Advanced](https://console.apify.com/actors/umYouAXm92472jIdY/source)
- [Facebook Video Details Scraper](https://console.apify.com/actors/cQi4k63arffL6Cn0m/source)
- [Facebook Transcript & Subtitle scraper](https://console.apify.com/actors/hMNe1QYDOtcTc95qI/source)
- [Facebook Thumbnail Downloader Video & Reels](https://console.apify.com/actors/9SmYiqGTUia29Yd1Y/source)
- [Facebook Reels Downloader Advanced](https://console.apify.com/actors/3Zdnp9TnvltdoC44T/source)
- [Facebook Reels Details Scraper  Best and  Affordable](https://console.apify.com/actors/nuzr418MKJltywrCh/source)
- [Facebook Reels Details Scraper](https://console.apify.com/actors/OGBA89e5Ki6Y5amko/source)
- [Facebook Page Details Scraper](https://console.apify.com/actors/PL9nP9BrKDSsKwSZF/source)
- [Facebook Audio Downloader](https://console.apify.com/actors/uVrcf4OJ9VW8iCybQ/source)

### Amazon Iteams:

- [Amazon Search Scraper](https://console.apify.com/actors/YcgJR1WP1cHJhHzvH/source)
- [Amazon Product Details Scraper ](https://console.apify.com/actors/1twpltijc10KFaVeb/source)

# Actor input Schema

## `usernames` (type: `array`):

One or more Facebook usernames (e.g. 'Cristiano') or full profile/page URLs (e.g. 'https://www.facebook.com/Cristiano'). Accepts a mix of both.

## `urls` (type: `array`):

One or more full Facebook profile or page URLs. Use this field when you prefer to supply complete URLs separately from plain usernames.

## `maxItemsPerUrl` (type: `integer`):

Maximum number of posts to extract per profile. The Actor paginates via GraphQL until this count is reached or no more posts are available.

## Actor input object example

```json
{
  "usernames": [
    "Cristiano",
    "LeonardoDiCaprio"
  ],
  "urls": [
    "https://www.facebook.com/tweakedmotorsports",
    "https://web.facebook.com/pythonclcoding"
  ],
  "maxItemsPerUrl": 10
}
```

# 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 = {
    "usernames": [
        "Cristiano",
        "LeonardoDiCaprio"
    ],
    "urls": [
        "https://www.facebook.com/tweakedmotorsports",
        "https://web.facebook.com/pythonclcoding"
    ],
    "maxItemsPerUrl": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("alpha-scraper/facebook-page-profile-posts-scraper-with-all-reactions").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 = {
    "usernames": [
        "Cristiano",
        "LeonardoDiCaprio",
    ],
    "urls": [
        "https://www.facebook.com/tweakedmotorsports",
        "https://web.facebook.com/pythonclcoding",
    ],
    "maxItemsPerUrl": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("alpha-scraper/facebook-page-profile-posts-scraper-with-all-reactions").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 '{
  "usernames": [
    "Cristiano",
    "LeonardoDiCaprio"
  ],
  "urls": [
    "https://www.facebook.com/tweakedmotorsports",
    "https://web.facebook.com/pythonclcoding"
  ],
  "maxItemsPerUrl": 10
}' |
apify call alpha-scraper/facebook-page-profile-posts-scraper-with-all-reactions --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=alpha-scraper/facebook-page-profile-posts-scraper-with-all-reactions",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Facebook Page & Profile Posts Scraper with All Reactions",
        "description": "Extract detailed Facebook posts data from public pages and profiles.post scraper, posts scraper, page scraper, profile scraper, page posts, profile posts, page data, profile data, feed scraper, timeline scraper, public posts,data extractor,post extractor, post data, page url, profile url, username,",
        "version": "0.0",
        "x-build-id": "HqiW6y0Zyna0Naqw8"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/alpha-scraper~facebook-page-profile-posts-scraper-with-all-reactions/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-alpha-scraper-facebook-page-profile-posts-scraper-with-all-reactions",
                "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/alpha-scraper~facebook-page-profile-posts-scraper-with-all-reactions/runs": {
            "post": {
                "operationId": "runs-sync-alpha-scraper-facebook-page-profile-posts-scraper-with-all-reactions",
                "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/alpha-scraper~facebook-page-profile-posts-scraper-with-all-reactions/run-sync": {
            "post": {
                "operationId": "run-sync-alpha-scraper-facebook-page-profile-posts-scraper-with-all-reactions",
                "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": {
                    "usernames": {
                        "title": "Usernames (or full URLs)",
                        "type": "array",
                        "description": "One or more Facebook usernames (e.g. 'Cristiano') or full profile/page URLs (e.g. 'https://www.facebook.com/Cristiano'). Accepts a mix of both.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "urls": {
                        "title": "Profile / Page URLs",
                        "type": "array",
                        "description": "One or more full Facebook profile or page URLs. Use this field when you prefer to supply complete URLs separately from plain usernames.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "maxItemsPerUrl": {
                        "title": "Max Items Per URL",
                        "type": "integer",
                        "description": "Maximum number of posts to extract per profile. The Actor paginates via GraphQL until this count is reached or no more posts are available."
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
