Facebook Post
Description
Section titled “Description”This module allows publishing a message to a Facebook page feed using the Graph API. It receives the page ID and an access token, and takes the message content from the data.message field of the flow. It is useful for automating social media posts as part of a marketing or communication workflow.
Configuration
Section titled “Configuration”| Parameter | Type | Required | Description |
|---|---|---|---|
| credentials_id | string | No | Credentials ID (reserved for future use). |
| pageId | string | Yes | Facebook page ID where the post will be published. |
| accessToken | string | Yes | Facebook access token with publishing permissions on the page. |
| dataKey | string | No | Data access key (reserved). |
Output
Section titled “Output”{ "nextModule": "siguiente_modulo", "data": { "id": "123456789_987654321" }}Usage Example
Section titled “Usage Example”Basic case
Section titled “Basic case”{ "pageId": "123456789", "accessToken": "EAABsbCS..."}With input data:
{ "message": "Nueva publicacion desde el workflow automatizado"}API Used
Section titled “API Used”- Endpoint:
POST https://graph.facebook.com/{pageId}/feed - Documentation: https://developers.facebook.com/docs/graph-api/reference/page/feed
- The message to publish must be in the
data.messagefield of the input data - The access token must have the
pages_manage_postsFacebook permission - Facebook page tokens have an expiration date; use long-lived tokens
- In case of error, the Facebook API error message is returned
Related Nodes
Section titled “Related Nodes”- dataset (prepare the message to publish)
- evaluateExpression (dynamically build the message content)