Actions7
- Auth Actions
- Thread Actions
Overview
This node integrates with the Facebook Threads API to manage and interact with Threads content. Specifically, for the Thread - Post operation, it allows users to post new content (text, media, or links) as a post on an existing thread.
Common scenarios where this node is beneficial include:
- Automating social media management by posting updates or replies to specific threads.
- Integrating Facebook Threads posting into workflows such as content scheduling or customer engagement.
- Adding multimedia content (images, videos) or links alongside text posts to enrich thread interactions.
Practical example:
- A marketing automation workflow that posts promotional messages with images to a Facebook Thread identified by its ID.
- Customer support automation replying to user comments in a thread with helpful information and relevant media.
Properties
| Name | Meaning |
|---|---|
| Thread ID | The unique identifier of the thread where the post will be made. |
| Text | The textual content of the post to be published on the thread. |
| Additional Fields | Optional extra fields to enhance the post: |
| - Media URLs | One or more URLs of media files (images or videos) to attach to the post. |
| - Link URL | A URL link to include with the post, displayed as alternative text. |
Output
The node outputs a JSON array containing the response from the Facebook Threads API after attempting to post to the thread. The structure typically includes confirmation details such as IDs and status of the posted content.
If media is included, the output confirms successful attachment and publishing of the media along with the text.
No binary data output is produced by this operation.
Example output snippet (simplified):
[
{
"id": "1234567890",
"status": "published"
}
]
Dependencies
- Requires a valid API authentication token for Facebook Threads API access.
- The node expects credentials configured in n8n that provide an access token with appropriate permissions.
- Network access to
https://graph.threads.netis necessary for API calls.
Troubleshooting
Error: "Không nhận được container ID hợp lệ từ API"
This means the API did not return a valid container ID when creating the post. Check that the access token is valid and has sufficient permissions, and verify the input parameters are correct.Error: "Carousel cần ít nhất 2 media items"
When creating a carousel post, ensure at least two media URLs are provided.Media URL format issues
Only certain file extensions are recognized for media type detection (jpg,jpeg,png,giffor images;mp4,mov,avi,wmvfor videos). Ensure URLs end with these extensions.Access token errors
If authentication fails, verify that the API key or OAuth token is correctly set up and not expired.Use the "Continue On Fail" option in n8n to handle errors gracefully during batch processing.
Links and References
- Facebook Graph API Documentation
- Facebook Threads API Overview
- n8n HTTP Request Node Documentation (for understanding underlying HTTP calls)