X

Interact with X (Twitter) API

Tweet → Quote Tweet

AI-generated

Overview

This node enables interaction with Twitter's API, specifically allowing users to perform a "Quote Tweet" operation. The Quote Tweet operation lets you share someone else's tweet on your timeline while adding your own commentary text. This is useful for amplifying messages with your personal input or context.

Common scenarios include:

  • Sharing news or announcements from other users with your opinion.
  • Highlighting interesting tweets in your network with added remarks.
  • Engaging in conversations by quoting tweets and providing additional insights.

Example: You want to quote a tweet with ID 1234567890 and add the text "Great insight on this topic!" so that your followers see both the original tweet and your comment.

Properties

Name Meaning
Authentication Method of authenticating with Twitter API. Options: OAuth1.0a, Bearer Token
Tweet ID The unique identifier of the tweet you want to quote
Text The text content you want to add as your comment when quoting the tweet

Output

The node outputs JSON data representing the response from Twitter's API after creating the quote tweet. This typically includes details about the newly created tweet such as its ID, text, creation time, and metadata.

No binary data output is involved in this operation.

Dependencies

  • Requires valid Twitter API credentials configured in n8n, either via OAuth 1.0a or Bearer Token authentication.
  • Access to Twitter API v2 endpoints for posting tweets.
  • Proper permissions/scopes granted to the API credentials to post tweets on behalf of the user.

Troubleshooting

  • Common issues:

    • Invalid or expired authentication tokens will cause authorization errors.
    • Providing an incorrect or non-existent Tweet ID will result in errors indicating the tweet cannot be found.
    • Missing or empty text property may cause the API to reject the request since quote tweets require text content.
  • Error messages and resolutions:

    • "Unauthorized" — Check that your API credentials are correct and have not expired.
    • "Tweet not found" — Verify the Tweet ID is accurate and the tweet is publicly accessible.
    • "Text is required" — Ensure the Text property is filled with your comment for the quote tweet.

Links and References

Discussion