Create
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"Examples
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
accessToken *Requiredstring
Access Token
Facebook Page access token with appropriate permissions (pages_manage_posts, pages_manage_engagement, etc.)
message *Requiredstring
Post Message
The text content of the post
pageId *Requiredstring
Facebook Page ID
The ID of the Facebook page to perform operations on
apiBaseUrl string
Default
https://graph.facebook.comBase API URL
The base URL for the Facebook Graph API
apiVersion string
Default
v24.0API Version
Facebook Graph API version to use
link string
Link URL
Optional link to include in the post