ETTwitter icon

ETTwitter

Consume Twitter API

Actions6

Overview

The ETTwitter node's "Tweet" resource with the "Like" operation allows users to like (favorite) a specific tweet on Twitter by providing its Tweet ID. This is useful for automating engagement workflows, such as automatically liking tweets that match certain criteria or are posted by specific users.

Practical examples:

  • Automatically like tweets containing a specific hashtag.
  • Like tweets from a list of user IDs as part of a social media engagement strategy.
  • Integrate with other n8n nodes to trigger likes based on events in other systems.

Properties

Name Type Meaning
Tweet ID String The unique identifier of the tweet you want to like.
Additional Fields Collection Optional fields to further customize the request.
└─ Include Entities Boolean Whether to include entities (such as hashtags, URLs, etc.) in the returned tweet data.

Output

The output is a JSON object representing the liked tweet. The structure includes all standard tweet fields as returned by the Twitter API, such as:

{
  "created_at": "...",
  "id": 1234567890,
  "text": "...",
  "user": { ... },
  // ...other tweet fields
}

If an error occurs and "Continue On Fail" is enabled, the output will be:

{
  "error": "Error message"
}

Dependencies

  • External Service: Requires access to the Twitter API.
  • Credentials: Needs a configured twitterOAuth1Api credential in n8n (Twitter App with appropriate permissions).
  • n8n Configuration: No special environment variables required beyond Twitter credentials.

Troubleshooting

Common Issues:

  • Invalid Tweet ID: If the provided Tweet ID does not exist or is invalid, the node will throw an error.
  • Authentication Errors: Missing or incorrect Twitter credentials will result in authentication failures.
  • Permission Denied: The authenticated Twitter account may not have permission to like the specified tweet (e.g., if blocked by the tweet author).

Common Error Messages:

  • "Could not authenticate you": Check your Twitter credentials in n8n.
  • "No status found with that ID": Verify the Tweet ID is correct and accessible.
  • "You have already favorited this status": The tweet has already been liked by the account.

How to resolve:

  • Double-check the Tweet ID.
  • Ensure Twitter credentials are valid and have write permissions.
  • Make sure the tweet is public and accessible to the authenticated user.

Links and References

Discussion