List posts from a Facebook Page

Retrieve a list of recent posts from a Facebook Page

yaml
type: "io.kestra.plugin.meta.facebook.posts.List"

List Facebook page posts

yaml
id: facebook_list_posts
namespace: company.team

tasks:
  - id: list_posts
    type: io.kestra.plugin.meta.facebook.posts.List
    pageId: "{{ secret('FACEBOOK_PAGE_ID') }}"
    accessToken: "{{ secret('FACEBOOK_ACCESS_TOKEN') }}"
    limit: 10

List posts with specific fields

yaml
id: "list"
type: "io.kestra.plugin.meta.facebook.posts.List"
- id: list_detailed_posts
  type: io.kestra.plugin.meta.facebook.posts.List
  pageId: "{{ secret('FACEBOOK_PAGE_ID') }}"
  accessToken: "{{ secret('FACEBOOK_ACCESS_TOKEN') }}"
  limit: 5
  fields: "id,message,created_time,permalink_url,reactions.summary(true)"
Properties

Access Token

Facebook Page access token with appropriate permissions (pages_manage_posts, pages_manage_engagement, etc.)

Facebook Page ID

The ID of the Facebook page to perform operations on

Default https://graph.facebook.com

Base API URL

The base URL for the Facebook Graph API

Default v24.0

API Version

Facebook Graph API version to use

Default FETCH
Possible Values
STOREFETCHFETCH_ONENONE

The way you want to store the data.

FETCH_ONE output the first row, FETCH output all rows, STORE store all rows in a file, NONE do nothing.

Fields

Comma-separated list of fields to retrieve for each post (e.g., id,message,created_time,permalink_url)

Default 100

Limit

Maximum number of posts to retrieve