# Download Facebook Posts Media to Permanent Cloud Storage

**Use case:** 

Download high-resolution photos, HD video streams, and extracted MP3 audio tracks from Facebook posts into Apify  Storage with permanent non-expiring URLs.

## Input

```json
{
  "username": [
    "Cristiano"
  ],
  "facebook_urls": [
    {
      "url": "https://www.facebook.com/IamSRK"
    }
  ],
  "posts_count": 3,
  "post_types": [
    "all"
  ],
  "proxyCountry": "US",
  "include_individual_posts": false,
  "include_comments": false,
  "comments_limit": 20,
  "comment_filter": "most_relevant",
  "include_comment_replies": false,
  "comment_replies_limit": 10,
  "include_post_share_person_details": false,
  "share_people_limit": 10,
  "keyValueStorePrefix": "***",
  "storePhotos": true,
  "storeVideo": true
}
```

## Output

```json
{
  "number": {
    "label": "Result #",
    "format": "integer"
  },
  "post_type": {
    "label": "Post Type",
    "format": "string"
  },
  "profile_name": {
    "label": "Creator / Page Name",
    "format": "string"
  },
  "message_text": {
    "label": "Message / Caption",
    "format": "string"
  },
  "reaction_count_total": {
    "label": "Total Reactions",
    "format": "integer"
  },
  "comment_count_total": {
    "label": "Total Comments",
    "format": "integer"
  },
  "share_count_total": {
    "label": "Total Shares",
    "format": "integer"
  },
  "video_view_count_total": {
    "label": "Video Views",
    "format": "integer"
  },
  "primary_image_url": {
    "label": "Photo Link",
    "format": "string"
  },
  "image_urls": {
    "label": "All Image URLs",
    "format": "array"
  },
  "primary_video_url_hd": {
    "label": "HD Video Link",
    "format": "string"
  },
  "video_urls_hd": {
    "label": "All HD Video URLs",
    "format": "array"
  },
  "kvs_video_download_url": {
    "label": "Permanent Video Link",
    "format": "string"
  },
  "kvs_music_download_url": {
    "label": "Permanent Music Link",
    "format": "string"
  },
  "kvs_photo_download_url": {
    "label": "Permanent Photo Link",
    "format": "string"
  },
  "storage_mode": {
    "label": "Storage Mode Details",
    "format": "object"
  },
  "permalink_url": {
    "label": "Post URL",
    "format": "string"
  },
  "profile_link": {
    "label": "Profile Link",
    "format": "string"
  },
  "original_author": {
    "label": "Original Author",
    "format": "string"
  },
  "post_id": {
    "label": "Post ID",
    "format": "string"
  }
}
```

## About this Actor

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


## 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.
This Task's input is already configured above — use it as-is rather than inventing a new one.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

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

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).
