Facebook Pages
API actions for the Facebook Pages integration.
Facebook Pages
Publish posts, share photos, and fetch activity from Facebook Pages using a page access token.
Comment on post
Add a comment to a Facebook post.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
post_id | string | Yes | The post ID to comment on. |
message | string | Yes | The comment message. |
Response
{
"id": "123456789_111_222"
}Create page post
Create a new post on a Facebook Page.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
page_id | string | Yes | The Facebook Page ID. |
message | string | Yes | The post message content. |
link | string | No | Optional URL to include in the post. |
Response
{
"id": "123456789_987654321"
}List page posts
List recent posts from a Facebook Page.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
page_id | string | Yes | The Facebook Page ID. |
limit | number | No | Maximum number of posts to return. |
Response
[
{
"created_time": "2024-01-15T10:00:00+0000",
"id": "123456789_111",
"message": "Hello World!"
}
]Publish photo
Publish a photo to a Facebook Page.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
page_id | string | Yes | The Facebook Page ID. |
image_url | string | Yes | Public URL of the image to share. |
caption | string | No | Optional caption for the photo. |
Response
{
"id": "photo_123",
"post_id": "123456789_333"
}