Actions74
- Lists Actions
- Tweets Actions
- Users Actions
- Timelines Actions
- Media Actions
- Spaces Actions
- Direct Messages Actions
- Analytics Actions
- Compliance Actions
Overview
This node provides an enhanced integration with the X (formerly Twitter) API v2, enabling a wide range of Twitter-related operations within n8n workflows. Specifically for the Tweets resource and the Like Tweet operation, it allows users to like a specific tweet by its ID.
Common scenarios where this node is beneficial include:
- Automating social media engagement by liking tweets based on certain triggers or criteria.
- Integrating Twitter interactions into broader marketing or customer service workflows.
- Building custom dashboards or analytics that react to tweet activity by liking relevant content automatically.
For example, you could set up a workflow that listens for tweets containing a specific hashtag and automatically likes those tweets to increase engagement.
Properties
| Name | Meaning |
|---|---|
| Tweet ID | The unique identifier of the tweet to like. |
| Include Private Metrics | Whether to include private metrics in responses (requires elevated access). |
| Custom Fields | Comma-separated list of additional custom fields to include in the response. |
| Custom Expansions | Comma-separated list of expansions to include in the response for richer data context. |
Output
The node outputs JSON data representing the result of the "like tweet" action. This typically includes confirmation details from the Twitter API about the like operation, such as success status and metadata related to the liked tweet.
No binary data output is produced by this operation.
Dependencies
- Requires an active subscription and valid API key for the external "N8N Tools API" service, which acts as a validation and proxy layer.
- Requires OAuth2 credentials or API authentication tokens configured in n8n to access the Twitter API.
- The node depends on the bundled
twitter-apihelper class to interact with Twitter endpoints.
Troubleshooting
- Invalid Subscription or API Key: If the node throws an error indicating invalid subscription or API key, verify that your API key credential is correct and has an active subscription.
- Permission Errors: Liking a tweet requires appropriate Twitter API permissions. Ensure your Twitter app credentials have write access.
- Tweet Not Found: Providing an incorrect or non-existent Tweet ID will cause errors. Double-check the Tweet ID input.
- Rate Limits: Twitter enforces rate limits; hitting these may cause temporary failures. Implement retry logic or monitor usage.
- Unsupported Media Uploads: For other operations involving media, base64 encoded data is required; URLs are not supported yet.
Links and References
- Twitter API v2 Documentation - Likes
- n8n Documentation - Creating Custom Nodes
- X (Twitter) Developer Platform
This summary focuses exclusively on the "Tweets" resource and the "Like Tweet" operation as requested.