# Comments on a NASA Facebook post

**Use case:** 

Exports the most relevant comments on a NASA Facebook post: comment text, author, date, reaction count and reply count. Paste in any public post URL to analyse audience reactions or sentiment.

## Input

```json
{
  "postUrls": [
    "https://www.facebook.com/NASA/posts/pfbid02or2A5mwjUdptjrR9LiDcrdfV73poxS7Mn1GwdCN2mS5ntTcvF4owZKCsMLSbajEUl"
  ],
  "maxItems": 50,
  "sortBy": "relevant",
  "includeReplies": false,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

## Output

```json
{
  "url": {
    "label": "Comment",
    "format": "link"
  },
  "author.name": {
    "label": "Author"
  },
  "text": {
    "label": "Text"
  },
  "createdAt": {
    "label": "Posted at",
    "format": "date"
  },
  "reactions": {
    "label": "Reactions",
    "format": "number"
  },
  "replies": {
    "label": "Replies",
    "format": "number"
  },
  "depth": {
    "label": "Depth",
    "format": "number"
  },
  "postUrl": {
    "label": "Post",
    "format": "link"
  }
}
```

## How it works

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

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

### 2. Start the "Comments on a NASA Facebook post" task

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

### 3. Receive the "Comments on a NASA Facebook post" 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, author, text, 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 "Comments on a NASA Facebook post" task via API](https://apify.com/piotrv1001/facebook-comments-scraper.md).

## FAQ

### What does the NASA Facebook comments task export?

The NASA Facebook comments task exports each comment's text, author name and profile picture, date, reaction count, reply count and comment link, plus the post it belongs to.

### How do I get comments from a different Facebook post?

The NASA Facebook comments task takes any public post, reel, video or group post URL in postUrls; paste one per line to collect comments from several posts in one run.

### Can I include replies to comments?

The NASA Facebook comments task saves top-level comments by default; turn on includeReplies to save every reply as its own row, with the comment it answers in the parent ID field.

### Should I sort comments by most relevant or by all?

The NASA Facebook comments task sorts by most relevant, which can hide some comments. Set sortBy to all or newest for a fuller sample before sentiment or audience analysis.

### How is the NASA Facebook comments task billed?

The NASA Facebook comments task is billed per comment saved (replies count when included), plus a tiny start fee per run. maxItems caps each post; current rates are on the Actor's Pricing tab.

### Can I send the comments to a sentiment analysis tool?

The NASA Facebook comments task's comments export as CSV, Excel or JSON, or go straight to Make, Zapier, n8n or your own code through the Apify API for sentiment scoring.

## About this Actor

This example demonstrates how to use [Facebook Comments Scraper](https://apify.com/piotrv1001/facebook-comments-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/piotrv1001/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/piotrv1001/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`).
