Lodol Docs

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

ParameterTypeRequiredDescription
post_idstringYesThe post ID to comment on.
messagestringYesThe comment message.

Response

{
  "id": "123456789_111_222"
}

Create page post

Create a new post on a Facebook Page.

Parameters

ParameterTypeRequiredDescription
page_idstringYesThe Facebook Page ID.
messagestringYesThe post message content.
linkstringNoOptional URL to include in the post.

Response

{
  "id": "123456789_987654321"
}

List page posts

List recent posts from a Facebook Page.

Parameters

ParameterTypeRequiredDescription
page_idstringYesThe Facebook Page ID.
limitnumberNoMaximum 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

ParameterTypeRequiredDescription
page_idstringYesThe Facebook Page ID.
image_urlstringYesPublic URL of the image to share.
captionstringNoOptional caption for the photo.

Response

{
  "id": "photo_123",
  "post_id": "123456789_333"
}

On this page