Actions12
Overview
This node enables users to create and publish text posts on Facebook, specifically targeting Facebook Pages, Groups, or User Profiles. It is useful for automating social media content publishing workflows, such as posting announcements, updates, or promotional messages directly from n8n without manual intervention.
Practical examples include:
- Automatically posting a daily update message to a company’s Facebook Page.
- Sharing event notifications in a Facebook Group.
- Posting status updates to a user profile (where available).
Properties
| Name | Meaning |
|---|---|
| Target Type | Select where to publish the content. Options: Page, Group, User Profile |
| Target ID | The ID of the Facebook Page, Group, or User Profile to post to (required) |
| Message | The text content of the post (required) |
Output
The node outputs JSON data representing the response from the Facebook Graph API after creating the post. This typically includes identifiers and metadata about the created post, such as its unique ID.
Example output structure (simplified):
{
"id": "1234567890123456_7890123456789012"
}
No binary data output is produced by this operation.
Dependencies
- Requires an API authentication token credential configured in n8n to access the Facebook Graph API.
- The node uses the Facebook Graph API v23.0 endpoint (
https://graph.facebook.com/v23.0). - Proper permissions/scopes must be granted to the API token to allow posting to the specified target (Page, Group, or User Profile).
Troubleshooting
Common issues:
- Invalid or missing Target ID: Ensure the provided ID corresponds to a valid Facebook Page, Group, or User Profile accessible by the authenticated account.
- Insufficient permissions: The API token must have the necessary rights to post on the chosen target.
- API rate limits or temporary Facebook API errors.
Error messages:
- Errors returned from the Facebook API are captured and presented with details including error type, message, code, and trace ID.
- If the node is set to continue on failure, errors are included in the output JSON under
erroranderrorDetails. - To resolve errors, verify credentials, permissions, and input parameters.
Links and References
- Facebook Graph API - Publishing
- Facebook Graph API - Permissions
- n8n Documentation - HTTP Request Node (for understanding API calls)