Create a post on a Facebook Page

Publish content to a Facebook Page including text, links, and media

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

Create a simple text post

yaml
id: facebook_create_post
namespace: company.team

tasks:
  - id: create_post
    type: io.kestra.plugin.meta.facebook.posts.Create
    pageId: "{{ secret('FACEBOOK_PAGE_ID') }}"
    accessToken: "{{ secret('FACEBOOK_ACCESS_TOKEN') }}"
    message: "Hello from Kestra! This is an automated post."

Create a post with link

yaml
id: "create"
type: "io.kestra.plugin.meta.facebook.posts.Create"
- id: create_post_with_link
  type: io.kestra.plugin.meta.facebook.posts.Create
  pageId: "{{ secret('FACEBOOK_PAGE_ID') }}"
  accessToken: "{{ secret('FACEBOOK_ACCESS_TOKEN') }}"
  message: "Check out this amazing automation platform!"
  link: "https://kestra.io"
Properties

Access Token

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

Post Message

The text content of the post

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