Skip to content

Facebook Post

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.

ParameterTypeRequiredDescription
credentials_idstringNoCredentials ID (reserved for future use).
pageIdstringYesFacebook page ID where the post will be published.
accessTokenstringYesFacebook access token with publishing permissions on the page.
dataKeystringNoData access key (reserved).
{
"nextModule": "siguiente_modulo",
"data": {
"id": "123456789_987654321"
}
}
{
"pageId": "123456789",
"accessToken": "EAABsbCS..."
}

With input data:

{
"message": "Nueva publicacion desde el workflow automatizado"
}
  • The message to publish must be in the data.message field of the input data
  • The access token must have the pages_manage_posts Facebook permission
  • Facebook page tokens have an expiration date; use long-lived tokens
  • In case of error, the Facebook API error message is returned
  • dataset (prepare the message to publish)
  • evaluateExpression (dynamically build the message content)