Publish to X (Twitter) with your own X app
Connect X (Twitter) to BeeGentic with your own X developer app (Client ID and Client Secret), then post tweets from a workflow. X bills your developer account directly.
What you'll build: you create a free X developer app, paste its Client ID and Client Secret into BeeGentic once, then a workflow (Start → Agent → X) writes and posts tweets as you. About 15 minutes the first time.
Posts to: Your X account · Connect with: Your own X developer app (Client ID + Secret) · Block: X
| Text | Link | Image | Video | Multi | Schedule | Edit | Delete | Read | Comments | Insights |
|---|---|---|---|---|---|---|---|---|---|---|
| ✅ | ✅ | ⚠️ | ⚠️ | ⚠️ | — | — | ✅ | ✅ | ⚠️ | — |
Not supported: Uploading new media from BeeGentic · Editing posts · Scheduling inside X
⏳ X bills your own X developer app per post; BeeGentic’s app is never used
✅ supported · ⚠️ partly (hover for details) · — not supported
You use your own X app, and X bills you. X charges the owner of the developer app for every API call, including each post. BeeGentic never posts through a BeeGentic X app, so X sends the bill to your X developer account, not to BeeGentic. You need API credits in your X Developer Console before posting works.
Status: this guide covers connecting X. The end-to-end run with a real customer X app (connect, post, delete) hasn't been done yet. Until it has, X stays in progress on BeeGentic and this page has no real-result section.
Before you start
| You need | Why |
|---|---|
| An X account | BeeGentic posts as this account |
| An X developer account with API credits (console.x.com) | X bills this account for each call |
An AI key saved as a secret, e.g. OPENAI_API_KEY | The Agent writes the tweet |
Part 1: Create your X app (once)
Sign in to the X Developer Console
Open the X Developer Console and sign in with the X account that will own the app. Accept the developer terms if X asks. Add API credits if you haven't yet.
Create an app
On the Developer Console dashboard click New App, and enter a name, description and use case. X shows the app name on the consent screen, so pick one you're happy for people to see, e.g. My company posts.
Turn on OAuth 2.0 (User authentication settings)
In your app's settings, open the User authentication settings (where X turns on OAuth 2.0), and fill in:
| Setting | Value |
|---|---|
| App permissions | Read and write (BeeGentic needs write to post) |
| Type of App | Web App, Automated App or Bot |
| Callback URI / Redirect URL | https://app.beegentic.ai/api/auth/oauth2/callback/x (the BeeGentic connect dialog shows the exact URL with a copy button; use that one) |
| Website URL | Your website, e.g. https://www.example.com |
Save.
Copy the Client ID and Client Secret
In your app's keys and tokens, copy the OAuth 2.0 Client ID & Secret (X describes them as "OAuth 2.0 authentication for user-context requests"). Keep the secret safe; if you lose it, regenerate it and reconnect in BeeGentic.
Don't use the API Key and Secret or the Bearer Token: those are for other kinds of X login.
Part 2: Connect X in BeeGentic (once)
Open the X connect dialog
Integrations (left sidebar) → search X → Add to BeeGentic.
The dialog explains why you use your own app, links to this guide, and shows:

| # | Field | What to do |
|---|---|---|
| 1 | Callback URL | Click copy and make sure it matches the Callback URI in your X app (Part 1, step 3). |
| 2 | Client ID | Paste the OAuth 2.0 Client ID. |
| 3 | Client secret | Paste the OAuth 2.0 Client Secret. It's stored encrypted and only used for this X connection. |
| 4 | Connect | Stays disabled until both fields are filled. |
Approve on X
X opens a consent screen that shows your app's name. Click Authorize app. You're sent back to BeeGentic, connected.
Part 3: Build the workflow
Add the Agent
+ New workflow → Toolbar → Agent. In Messages:
Write one tweet (max 260 characters) announcing: <start.input>. Friendly, one hashtag. Return only the tweet text.Pick a model and your key, e.g. gpt-5-mini and {{OPENAI_API_KEY}}.
Add the X block
Toolbar → X. Set:
| Field | Value |
|---|---|
| Operation | Create Tweet |
| X Account | the connection from Part 2 |
| Tweet Text | <agent.content> |
Run it from Chat with a topic. The X block returns the new tweet's id and text.
Delete the test post (optional)
Add another X block with Delete Tweet and the tweet ID, or delete it in the X app.
⚡ Make it automatic
| Trigger | Example |
|---|---|
| Schedule | Post a tip every Monday at 9:00 |
| RSS | Tweet each new blog post |
| Approval first | X announcement with approval |
Posting to several networks at once? Add a Bluesky or LinkedIn block after the same Agent.
🛠️ Troubleshooting
| What you see | Fix |
|---|---|
| Connect stays disabled | Fill in both Client ID and Client secret. |
| X shows Something went wrong or a redirect error before the consent screen | The Callback URI in your X app doesn't match exactly. Copy it again from the BeeGentic dialog. Also check Type of App is Web App, Automated App or Bot. |
You return to BeeGentic with error=x_callback_error | The Client Secret is wrong or was regenerated. Copy a fresh Client ID & Secret from your X app and connect again. |
You return with error=x_access_denied | You clicked Cancel on X. Connect again and click Authorize app. |
| The X block fails with an X message about credits or usage | Your X developer account is out of API credits. Add credits in the X Developer Console. |
| An X connection made before October 2026 stops working | Older connections used a shared BeeGentic app. Reconnect X with your own app (Integrations → your X connection → Reconnect). |
Instagram auto-share to Facebook
What Instagram's "Sharing across profiles" does, how to turn it on, and why it doesn't copy posts that BeeGentic publishes.
Publish to Threads
Post text, links, images, videos and carousels to Threads from a workflow. Connect your Threads profile once. Real result included.