# Facebook Reel Comments Scraper

**Use case:** 

Get the comments and replies of a public Facebook reel: text, author, date and reactions, newest first.

## Input

```json
{
  "startUrls": [
    {
      "url": "https://www.facebook.com/reel/1557618349384047/"
    }
  ],
  "maxCommentsPerPost": 100,
  "includeReplies": true,
  "sortOrder": "newest"
}
```

## Output

```json
{
  "comment_id": {
    "label": "Comment id",
    "format": "text"
  },
  "post_id": {
    "label": "Post id",
    "format": "text"
  },
  "post_url": {
    "label": "Post link",
    "format": "link"
  },
  "url": {
    "label": "Comment link",
    "format": "link"
  },
  "text": {
    "label": "Comment",
    "format": "text"
  },
  "created_at": {
    "label": "Posted",
    "format": "date"
  },
  "depth": {
    "label": "Depth",
    "format": "number"
  },
  "thread_comment_id": {
    "label": "Thread",
    "format": "text"
  },
  "parent_comment_id": {
    "label": "Replies to comment",
    "format": "text"
  },
  "reply_to_author_id": {
    "label": "Replies to (id)",
    "format": "text"
  },
  "reply_to_author_name": {
    "label": "Replies to",
    "format": "text"
  },
  "author_id": {
    "label": "Author id",
    "format": "text"
  },
  "author_name": {
    "label": "Author",
    "format": "text"
  },
  "author_url": {
    "label": "Author profile",
    "format": "link"
  },
  "author_picture_url": {
    "label": "Author picture",
    "format": "image"
  },
  "author_type": {
    "label": "Author type",
    "format": "text"
  },
  "author_is_verified": {
    "label": "Verified",
    "format": "boolean"
  },
  "reaction_count": {
    "label": "Reactions",
    "format": "number"
  },
  "reactions": {
    "label": "Reactions by type",
    "format": "object"
  },
  "reply_count": {
    "label": "Replies",
    "format": "number"
  },
  "reply_count_visible": {
    "label": "Replies shown",
    "format": "number"
  },
  "edited": {
    "label": "Edited",
    "format": "boolean"
  },
  "language": {
    "label": "Language",
    "format": "text"
  },
  "mentions": {
    "label": "Mentions",
    "format": "array"
  },
  "attachments": {
    "label": "Attachments",
    "format": "array"
  },
  "during_live_video": {
    "label": "During a live video",
    "format": "boolean"
  },
  "video_offset_seconds": {
    "label": "Video time (s)",
    "format": "number"
  },
  "post_owner_id": {
    "label": "Post owner id",
    "format": "text"
  },
  "post_owner_name": {
    "label": "Post owner",
    "format": "text"
  },
  "post_text": {
    "label": "Post text",
    "format": "text"
  },
  "post_author_id": {
    "label": "Post author id",
    "format": "text"
  },
  "post_author_name": {
    "label": "Post author",
    "format": "text"
  },
  "post_author_url": {
    "label": "Post author's profile",
    "format": "link"
  },
  "post_author_picture_url": {
    "label": "Post author's picture",
    "format": "image"
  },
  "post_created_at": {
    "label": "Post posted",
    "format": "date"
  },
  "post_permalink": {
    "label": "Post's own link",
    "format": "link"
  },
  "post_comment_count": {
    "label": "Post's comment count",
    "format": "number"
  },
  "post_reaction_count": {
    "label": "Post's reactions",
    "format": "number"
  },
  "post_reactions": {
    "label": "Post's reactions by type",
    "format": "object"
  },
  "post_share_count": {
    "label": "Post's shares",
    "format": "number"
  },
  "post_shared_text": {
    "label": "Shared post's text",
    "format": "text"
  },
  "post_shared_post": {
    "label": "Shared post",
    "format": "object"
  },
  "post_media": {
    "label": "Post's photos and videos",
    "format": "array"
  },
  "post_photo_count": {
    "label": "Post's photo count",
    "format": "number"
  },
  "post_hashtags": {
    "label": "Post's hashtags",
    "format": "array"
  },
  "post_mentions": {
    "label": "Post's mentions",
    "format": "array"
  },
  "post_links": {
    "label": "Post's links",
    "format": "array"
  },
  "post_sale": {
    "label": "Sale item",
    "format": "object"
  },
  "post_page_ad_library": {
    "label": "Ad Library",
    "format": "object"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Facebook Comments Scraper: With Replies Actor is ready to run with the inputs already set for "Facebook Reel Comments Scraper". [Sign up or log in](https://console.apify.com/create-task-from-example/jea2Vx8BoDgx3zgUX) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Facebook Reel Comments Scraper" task

The Facebook Comments Scraper: With Replies Actor will start running based on the input automatically. You can also change all the input fields, like post links, max comments per post, and more, to match your specific use case.

### 3. Receive the "Facebook Reel Comments Scraper" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as comment id, post id, post link, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Facebook Reel Comments Scraper" task via API](https://apify.com/luzivanlt/facebook-comments-scraper.md).

## About this Actor

This example demonstrates how to use [Facebook Comments Scraper: With Replies](https://apify.com/luzivanlt/facebook-comments-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/luzivanlt/facebook-comments-scraper.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/luzivanlt/facebook-comments-scraper.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
