Twitter / X
Connect your Twitter account to schedule tweets and manage your presence on X.
Connecting Your Account
X connects through your own X app, so X bills its API usage to your developer account. You create the app once on console.x.com and authorize your account with it.
- Open console.x.com and create an app, or open the one you have
- In User authentication settings, turn on OAuth 2.0 and choose Web App, Automated App or Bot as the type of app
- Fill in Callback URI with the callback URL shown in PostRite's connect dialog, and Website URL with your website
- In Keys and tokens, copy the Client ID and the Client Secret
- Go to the Connected accounts page in PostRite
- Click Connect on the Twitter / X card
- Paste the Client ID and the Client Secret in the dialog
- Optionally tick Collect this account's X metrics. Turning on X metrics may add costs to your X developer account. You can turn this on or off later on the account's card
- Click Authorize my X account. On X's screen, tick I trust this app and authorize. The window closes and the account appears in the list
- Afterwards, don't generate an OAuth 2.0 token for the same account in the console: X keeps one connection per account per app, and a new token ends PostRite's
- To connect the same X account in a second PostRite organization, use a second X app, for the same reason
Supported Features
- Post tweets: up to 280 characters, or 25,000 when the account has an X subscription
- Upload up to 4 images per tweet
- Upload videos (up to 20 minutes; up to 125 minutes when the account has X Premium or is verified)
- Schedule tweets for future publishing
- First comment: published automatically as a reply to your tweet (up to 280 characters)
- Reply settings: choose who can reply (everyone, accounts you follow, or only accounts you mention)
- Metrics (optional): likes, replies, reposts, bookmarks, impressions and the follower total, collected only once you turn X metrics on for the account
Polls, disclosures and Communities
These options are in the post editor, under X options, once an X account is selected.
- Poll: 2 to 4 options of up to 25 characters each, open for a duration you choose from 5 minutes to 7 days.
- Made with AI: a switch that discloses that the post contains AI-generated media.
- Paid partnership: a switch that discloses that the post is a paid partnership.
- Community ID: posts to an X Community. Type the numeric ID of the Community; the account must be a member of it. The ID belongs to that account, so templates do not carry it.
A poll cannot go out with media. While the post has media for X, the editor disables the poll and says why. If the post has media for other networks, add that media per platform so that X has none and the poll can stay; otherwise put the poll in its own post.
Character Limits
| Account Type | Character Limit |
|---|---|
| No X subscription | 280 characters |
| X subscription (Basic, Premium or Premium+) | 25,000 characters |
Note: X counts a weighted length, not plain characters. Every link counts as 23 characters, whatever its actual length, and each emoji and each Chinese, Japanese or Korean character counts as 2. PostRite reads the account's X subscription when you connect it. If you subscribe later, an owner or admin clicks Refresh on the X card on the Connected accounts page so your posts can use the higher limit; the card states the limit the account has. A post that goes to several X accounts can use 25,000 only when all of them have a subscription. The first comment stays at 280.
First Comment
Add a first comment and PostRite publishes it as a reply to your tweet as soon as the tweet goes out. It is the usual place for hashtags or a link, so the tweet itself stays within 280 characters. The reply has the same limit.
Who can reply
Choose who can reply to the tweet: everyone (the default), only accounts you follow, or only accounts you mention in it. Your own first comment is still posted as a reply either way.
Metrics
- X metrics are read through your own X app, so they are off until you turn them on: tick Collect this account's X metrics when connecting, or use the X metrics switch on the account's card in Connected accounts. Only an owner or admin can change it.
- Turning on X metrics may add costs to your X developer account.
- If X refuses the read because the developer account has no credit left, or because its app cannot read posts, PostRite pauses the account's metrics and the card says why. Collection does not resume on its own, since the same credit pays for your posts: click Resume metrics when you are ready.
Media Requirements
Images
- Formats: JPEG, PNG, GIF, WebP
- Maximum file size: 5MB (images), 15MB (GIFs)
- Maximum images per tweet: 4
- Recommended size: 1200 x 675 px (16:9) or 1080 x 1080 px (1:1)
Videos
- Formats: MP4, MOV
- Maximum duration: 20 minutes, or 125 minutes when the account has X Premium or is verified
- Maximum file size: 512MB
- Recommended resolution: 1280 x 720 px or 1920 x 1080 px
- One video per tweet. Videos cannot be mixed with images
Best Practices
- Keep it concise: Even with higher limits, shorter tweets tend to perform better
- Use visuals: Tweets with images get 150% more retweets
- Optimal timing: Post when your audience is most active
- Engage: Ask questions to encourage replies
- Hashtags: Use 1-2 relevant hashtags (more can reduce engagement)
Troubleshooting
Tweet fails to publish
When a tweet fails, PostRite shows the specific reason on the failed post (Platforms tab of the post detail). Common causes:
- No API credits / payment required (HTTP 402): your X API plan ran out of credits or requires payment. Check billing in your X developer account. PostRite marks the failed post as payment required
- Authorization refused (HTTP 401): X no longer accepts the account's authorization, for example after a token was generated for it in the console. Click Reconnect on the X card and authorize it with your X app
- Content exceeds character limit
- Duplicate tweet (Twitter blocks identical content)
- Media file too large or wrong format
- Rate limited (HTTP 429): PostRite retries automatically after X's rate-limit window (~15 minutes)
API Rate Limits
Twitter has strict API rate limits. If you schedule many tweets, spread them out to avoid hitting the limits. PostRite manages this for you automatically.
Account shows as disconnected
PostRite no longer connects to X with the four API keys it used before. An account connected with them shows as disconnected: click Reconnect and authorize it with your own X app (Client ID and Client Secret, OAuth 2.0), as in the steps above. The same applies when X ends the authorization.