Actions12
Overview
This node enables creating and publishing posts on Threads, a social media platform, as well as Facebook and Instagram. Specifically for the Threads resource with the Create Photo Post operation, it allows users to publish photo posts by providing an image URL and optional accompanying text.
Common scenarios include automating social media content publishing workflows where images need to be posted programmatically to Threads accounts. For example, a marketing team can automatically post product photos with captions to their Threads account whenever new items are added to their catalog.
Properties
| Name | Meaning |
|---|---|
| Threads User ID | The unique identifier of the Threads user account where the photo post will be created. |
| Image URL | The URL of the image that will be posted in the photo post. |
| Photo Text | Optional text or caption to accompany the photo in the post. |
Output
The node outputs JSON data representing the response from the Threads API after creating and publishing the photo post. This typically includes identifiers such as the creation ID and confirmation of successful publication.
No binary data output is produced by this operation.
Example output structure (simplified):
{
"id": "1234567890",
"creation_id": "abcdefg",
"status": "published"
}
Dependencies
- Requires an API key credential configured in n8n to authenticate requests to the Facebook/Instagram/Threads API.
- The node makes HTTP POST requests to the official Graph API endpoint (
https://graph.facebook.com/v23.0). - Proper permissions/scopes must be granted to the API key to allow posting content on Threads.
Troubleshooting
Common issues:
- Invalid or missing Threads User ID: Ensure the user ID is correct and accessible by the authenticated API token.
- Invalid image URL: The image URL must be publicly accessible and valid.
- Insufficient API permissions: The API key must have rights to create and publish posts on Threads.
Error messages:
Unknown operation: Occurs if an unsupported operation is selected; verify the operation name.- API errors returned from the Graph API include error type, message, and code. These should be reviewed to adjust credentials or input parameters.
- Network or authentication failures: Check API key validity and network connectivity.
Resolution tips:
- Double-check all input parameters for correctness.
- Verify API credentials and permissions.
- Review API error details included in the node's error output for specific guidance.
Links and References
- Facebook Graph API Documentation
- Threads API Reference (via Facebook Graph API)
- n8n Documentation on HTTP Request Node (for understanding underlying HTTP calls)