# Facebook Pages

> Publish posts and comments to your Facebook Page and list its recent posts.

App · Social Media · 3 actions. Web page: https://docs.lodol.com/docs/integrations/facebook-pages

## Actions

### Create a comment

Add a comment to one of your Facebook Page's posts, identified by its post ID.

**Inputs**

- Post ID (`post_id`, text, required): The ID of the post to comment on (as returned by Create a post), for example, 123456789_987654321.
- Comment (`message`, text, required): The text of the comment.

**Outputs**

- `id` (text): The created comment's ID.

**Example output**

```json
{
  "id": "987654321_111222333"
}
```

### Create a post

Publish a text post to your Facebook Page, optionally attaching a link that Facebook renders as a preview card.

**Inputs**

- Message (`message`, text, required): The text of the post.
- Link (`link`, text): Optional URL to attach; Facebook renders it as a link preview, for example, https://example.com/article.

**Outputs**

- `id` (text): The created post's ID.

**Example output**

```json
{
  "id": "123456789_987654321"
}
```

### List posts

List the most recent posts published to your Facebook Page.

**Inputs**

- Limit (`limit`, number): How many posts to return (1-100). From 1 to 100. Default: `10`.

**Outputs**

- `posts` (list): The Page's recent posts.

**Example output**

```json
{
  "posts": [
    {
      "created_time": "2024-01-15T10:00:00+0000",
      "id": "123456789_111",
      "message": "Hello from our Page!",
      "permalink_url": "https://www.facebook.com/123456789/posts/111"
    }
  ]
}
```
