---
title: "Facebook - Tools | SnowAI"
description: "Facebook tools on SnowAI. Pages and their posts. 2 tools, each with its parameters, its price and a call to copy."
url: "https://trysnow.ai/docs/tools/facebook"
---

# Facebook

> Pages and their posts.

## Things to ask

Ask your agent in plain words. It picks the tool.

- What are Nike's Facebook page followers and contact details?
- Show me the last 10 posts from this Facebook page and how people reacted.
- Does this local business list its opening hours on Facebook?

## Tools in Facebook

2 tools. Prices are in credits; 1,000 credits are $1.

| Tool | Use it when | Cost |
| --- | --- | --- |
| [`facebook_get_page`](https://trysnow.ai/docs/tools/facebook#facebook_get_page) | You need a business's Facebook page: followers, category, contact details and hours. | 1.65 credits per call |
| [`facebook_get_posts`](https://trysnow.ai/docs/tools/facebook#facebook_get_posts) | You need what a Facebook page has posted recently and how it landed. | 1.65 credits per post |

## Get a Facebook page

Tool: `facebook_get_page` (read-only)

- **Good for**: You need a business's Facebook page: followers, category, contact details and hours.
- **Not the tool for**: Its posts (use `facebook_get_posts`).
- **What you get**: The page: name, category, about, followers, likes, phone, email, website, address and hours.
- **Cost**: 1.65 credits per call. Cached 24 hours: a cache hit costs 0.825 credits.

**Parameters**

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `url` | `string` | Yes | The Facebook page URL, e.g. https://www.facebook.com/nike |

**Example: MCP**

```json
{
  "name": "facebook_get_page",
  "arguments": {
    "url": "https://www.facebook.com/nike"
  }
}
```

**Example: cURL**

```sh
curl -X POST https://api.trysnow.ai/tools/facebook_get_page \
  -H "Authorization: Bearer $SNOWAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "url": "https://www.facebook.com/nike"
}'
```

**Example: TypeScript**

```ts
const response = await fetch("https://api.trysnow.ai/tools/facebook_get_page", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.SNOWAI_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "url": "https://www.facebook.com/nike"
  }),
});
const result = await response.json();
```

**Example: Python**

```python
import os
import requests

response = requests.post(
    "https://api.trysnow.ai/tools/facebook_get_page",
    headers={"Authorization": f"Bearer {os.environ['SNOWAI_API_KEY']}"},
    json={
        "url": "https://www.facebook.com/nike",
    },
)
print(response.json())
```

## Get Facebook page posts

Tool: `facebook_get_posts` (read-only)

- **Good for**: You need what a Facebook page has posted recently and how it landed.
- **Not the tool for**: The page's details (use `facebook_get_page`).
- **What you get**: Recent posts with text, date, reactions, comments and shares.
- **Cost**: 1.65 credits per post. Cached 1 hour: a cache hit costs 50% of the live price.

**Parameters**

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `url` | `string` | Yes | The Facebook page URL, e.g. https://www.facebook.com/nike |
| `limit` | `integer` | No | How many posts to return, at most 100. Default 20. |

**Example: MCP**

```json
{
  "name": "facebook_get_posts",
  "arguments": {
    "url": "https://www.facebook.com/nike",
    "limit": 10
  }
}
```

**Example: cURL**

```sh
curl -X POST https://api.trysnow.ai/tools/facebook_get_posts \
  -H "Authorization: Bearer $SNOWAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "url": "https://www.facebook.com/nike",
  "limit": 10
}'
```

**Example: TypeScript**

```ts
const response = await fetch("https://api.trysnow.ai/tools/facebook_get_posts", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.SNOWAI_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "url": "https://www.facebook.com/nike",
    "limit": 10
  }),
});
const result = await response.json();
```

**Example: Python**

```python
import os
import requests

response = requests.post(
    "https://api.trysnow.ai/tools/facebook_get_posts",
    headers={"Authorization": f"Bearer {os.environ['SNOWAI_API_KEY']}"},
    json={
        "url": "https://www.facebook.com/nike",
        "limit": 10,
    },
)
print(response.json())
```

Every docs page as Markdown: https://trysnow.ai/llms.txt
