Connect X
Create your own X developer app with OAuth 2.0, add API credits, and learn what X allows a scheduler to do.
20 minutes · Updated 9 November 2026
Social Madness posts to X through the official X API, using your own X developer app. X bills API use per request from prepaid credits that you buy for that app, so you only pay for what your personas post.
X changes its developer console and prices often. Check the current rates in the console before you start.
1. Create the app
- Sign in at the X Developer Console with the X account that will own the app.
- Create an app. As app type choose Native App (a public client: it has no secret to protect, which is right for a desktop app).
- Under User authentication settings, turn on OAuth 2.0 with permissions Read and write.
- Add the redirect address shown in the Social Madness wizard. It looks like
http://127.0.0.1:<port>/callback/x. - Copy the Client ID into the wizard.
2. Add credits
X uses pay-per-use pricing. In the console, add a small amount of credit and set a spending limit. As a rough guide (November 2026 rate card):
| Action | Approximate cost |
|---|---|
| A post | $0.015 |
| A post that contains a link | $0.20 |
| Reading your own posts and mentions | $0.001 per post read |
Social Madness shows the estimated cost of each X post in the composer and a monthly total in Settings → X costs. Affiliate posts usually contain a link, so they are the expensive ones.
3. Connect
Press Connect in the wizard, sign in on X’s own page and approve. Social Madness asks for tweet.read, tweet.write, users.read, media.write and offline.access (so it can stay connected without asking you every two hours).
What X allows, and what Social Madness does about it
- Scheduling happens in the app. X’s API has no scheduled posts, so X posts need Social Madness running at the slot (it runs from the tray).
- Photos and video upload from your PC. Up to 4 photos or 1 video per post. Video up to 20 minutes on a standard account.
- Text length. 280 characters, unless your X account allows longer posts.
- Replies. X only allows API replies to people who mentioned or quoted you first, and AI-written replies need X’s approval. So on X the Inbox shows your mentions but never drafts a reply with AI: you write it, the app sends it.
- No duplicates. X forbids posting identical content from several accounts. The app blocks the same text going to two X accounts.
- Automated label. If an account posts mostly on autopilot, X’s rules ask you to turn on the Automated label in its profile settings.