How to connect & post to Twitter / X

This guide covers connecting your Twitter/X account via OAuth 2.0, creating a Post Group, testing prompts, posting a preview tweet (with optional image), and scheduling automated posts.

Requirements

  • An active Twitter / X account in good standing (not suspended or restricted).
  • Your account must not be in read-only mode — posting must be enabled.
  • FeedMyPost uses Twitter OAuth 2.0 (PKCE) for secure connection. No password is ever shared.
  • The following OAuth scopes are requested: tweet.read, tweet.write, users.read, offline.access.
⚠️ Twitter/X API note: Twitter/X's free API tier has limited monthly post quotas. FeedMyPost uses the Basic or Pro tier API to allow meaningful automation. Very high-frequency posting may be subject to rate limits.

1) Connect your Twitter/X account

  1. Open the connection page.
  2. Click Connect Twitter/X and you'll be redirected to Twitter's authorisation page.
  3. Sign in to the Twitter/X account you want to post from (if not already signed in).
  4. Click Authorize app to grant FeedMyPost permission to post on your behalf.
  5. After a successful connect, your Twitter/X username (@handle) will appear in My Connections.
Tip: You can connect multiple Twitter/X accounts (e.g., a personal and a business account) and assign each its own Post Group.

2) Create a Post Group

A Post Group defines your prompts and posting schedule. For Twitter/X, each run generates a tweet (up to 280 characters) with an optional attached image.

  1. Go to Post Groups and click Create Post Group.
  2. Select Twitter / X as the platform and choose your connected account.
  3. Enter a Name (e.g., "Daily Insights").
  4. Provide your Tweet Prompt — instruct the AI to write concise, engaging tweets within 280 characters.
    • Explicitly mention the character limit in your prompt for best results: "Write a tweet under 280 characters about…"
    • Use [[FEED_URL]] in your prompt to reference a CSV/RSS data source.
    • Optionally add an Image Prompt to attach a generated image to each tweet.
  5. Set Run every (minutes) and an optional Start time.
  6. Click Create Post Group.
Character limit: Twitter/X enforces a 280-character limit per tweet. If the AI generates text longer than this, FeedMyPost will truncate it automatically — but writing clear, concise prompts avoids truncation.

3) Test Prompts (preview)

Before scheduling, generate a one‑off preview to validate your tweet prompt.

  1. In the Create or Edit Post Group form, click Test prompts.
  2. Review the generated tweet text and optional image.
  3. Check the character count — it should be 280 characters or fewer.
  4. Adjust your prompt and test again as needed.
Heads‑up: Twitter/X does not support HTML in tweets — the generated text should be plain text. Hashtags and mentions in the output are supported.

4) Post a preview tweet

When you're happy with the preview, post it immediately without waiting for the schedule.

  1. After generating a preview, click Post Preview to Channel.
  2. The tweet will be posted to your connected Twitter/X account.
  3. Wait for the confirmation; if successful, a link to the tweet may appear.
Requirement: Your preview must include tweet text. An image attachment is optional. Ensure your connection is still valid (tokens can expire after extended inactivity).

5) Schedule your group

  1. Ensure the Post Group Status is set to active.
  2. Set an appropriate interval — for Twitter/X, 60–480 minutes (1–8 hours) is common for active accounts.
  3. Optionally set a Start time to align with your audience's peak hours.
Rate limits: Be mindful of Twitter/X's API rate limits. Posting too frequently (more than once every 15–30 minutes at scale) may result in temporary posting blocks. Check your API plan's limits in the Twitter Developer Portal.

Troubleshooting

  • Account not listed after connecting: Re-run the connection flow and ensure you authorised the correct Twitter/X account.
  • Tweet too long / truncated: Refine your prompt to explicitly request tweet-length output (under 280 characters).
  • 403 Forbidden when posting: Your account may be in read-only mode, suspended, or the app's access level may be insufficient. Check the Twitter Developer Portal for your app's permissions.
  • Rate limit errors: Reduce the posting frequency in your Post Group interval. Twitter/X rate limits reset on a rolling 15-minute window for most endpoints.
  • OAuth token expired: Twitter/X OAuth 2.0 tokens with offline.access include refresh tokens, but these can still expire. Re-run the connection flow to refresh.
  • Schedule not posting: Check the Post Group is active, the interval is set, and your backend Lambdas are running without errors.

FAQ

Can I post threads (multiple tweets)?
Thread posting support depends on your FeedMyPost plan. Single tweets are supported on all plans. Check your plan details for multi-tweet thread support.
Can I attach images to tweets?
Yes. Add an Image Prompt to your Post Group and FeedMyPost will generate and attach an image to each tweet.
Can I connect multiple Twitter/X accounts?
Yes — connect each account separately via the OAuth flow. Create a separate Post Group per account.
Does posting to Twitter/X cost credits?
AI text and image generation consume credits. The actual posting to Twitter/X does not — only the generation step does.