Connecting X/Twitter
How to connect your X (Twitter) account to SoSocial.
Connect Your X/Twitter Account
SoSocial integrates with the X API v2 to publish posts on your behalf. The connection uses OAuth 2.0 with PKCE (Proof Key for Code Exchange) for enhanced security.
Step-by-Step Connection
- Go to Settings from the sidebar.
- Under Platform Connections, click Connect next to X/Twitter.
- You’ll be redirected to X’s authorization page.
- Log in to your X account if prompted.
- Review the permissions SoSocial is requesting:
- tweet.read — to read your tweet data
- tweet.write — to create and publish tweets
- users.read — to access your account profile information
- Click Authorize app to grant access.
- You’ll be redirected back to SoSocial with your account connected.
What You Can Publish
Once connected, you can publish the following to X:
- Text posts — Standard tweets with your caption content
- Media posts — Tweets with attached images or videos
SoSocial respects X’s character limits and formats your content appropriately for the platform when using AI-generated captions.
OAuth 2.0 with PKCE
Unlike some platforms that use simpler OAuth flows, X/Twitter requires PKCE — a more secure authorization method that prevents authorization code interception. SoSocial handles all of this automatically; you just click Connect and authorize.
Token Refresh
X/Twitter connections use refresh tokens that automatically renew when they’re close to expiration. In most cases, your connection stays active indefinitely without any action needed on your part.
Rate Limits
The X API enforces rate limits on posting. If you’re scheduling a high volume of posts in a short time window, some may be delayed until the rate limit resets. SoSocial’s publishing queue handles retries automatically — posts will go out as soon as the API allows.
Troubleshooting
- Authorization denied: Make sure you’re logged into the correct X account before authorizing.
- Publishing failures: Check that your X account is in good standing and hasn’t hit API rate limits.
- Connection lost: If your connection stops working, go to Settings and click Connect again to reauthorize.