Schedule a post on a Facebook Page

Schedule content to be published at a future time on a Facebook Page

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

Schedule a post for tomorrow

yaml
id: facebook_schedule_post
namespace: company.team

tasks:
  - id: schedule_post
    type: io.kestra.plugin.meta.facebook.posts.Schedule
    pageId: "{{ secret('FACEBOOK_PAGE_ID') }}"
    accessToken: "{{ secret('FACEBOOK_ACCESS_TOKEN') }}"
    message: "This post is scheduled for tomorrow!"
    scheduledPublishTime: "{{ now() | dateAdd(1, 'DAYS') | date('yyyy-MM-dd HH:mm:ss') }}"

Schedule a post with Unix timestamp

yaml
id: "schedule"
type: "io.kestra.plugin.meta.facebook.posts.Schedule"
- id: schedule_unix_post
  type: io.kestra.plugin.meta.facebook.posts.Schedule
  pageId: "{{ secret('FACEBOOK_PAGE_ID') }}"
  accessToken: "{{ secret('FACEBOOK_ACCESS_TOKEN') }}"
  message: "Scheduled post with timestamp"
  scheduledPublishTime: "1735689600"
  link: "https://example.com"
Properties

Access Token

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

Message content to schedule in a post

The text content of the post

Facebook Page ID

The ID of the Facebook page to perform operations on

Scheduled Publish Time

When to publish the post. Accepts Unix timestamp or ISO 8601 string (e.g., 2025-10-26T10: 30: 00Z). Must be between 10 minutes and 30 days from now.

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