X AI AGENT

连接真实 X 账户

DRY_RUN=False · 模式=oauth1 · live_posting_would_run=True · 已连接 @TheAI0bserver

推荐:开发者后台用户 Token(绕过授权页失败)

上次卡在 You weren’t able to give access to the App。这条路径不经过那个授权页。

你现有的 n8n 发帖 App 可以同时存在,不会因为「已经有一个 App」就不能连。不要用 n8n 的 Client ID 来授权这个 Agent(回调地址不是同一条)。Free 套餐往往只能有 1 个 App:就在同一个 App 里用 Keys and tokens 四件套,不要改掉 n8n 的 Callback。

  1. User authentication settings:App permissions 选 Read and write,保存。
  2. Website URL 填 https://developer.x.com(不要填 x.com/home)。
  3. Keys and tokens:复制 API Key、API Key Secret、Access Token、Access Token Secret。改过权限后要重新 Generate。
  4. 不要把 API Key 填进 OAuth 2.0 的 Client ID。

OAuth 1.0a 已配置=True

可选:AI API Key · 已配置=True

备用:OAuth 2.0 网页授权

Callback 只保留这一行(必须完全一致):

http://127.0.0.1:8000/auth/x/callback

授权时必须用 SSH 隧道打开 http://127.0.0.1:8000/connect 。不要用公网 IP 或 sslip.io。

Client ID · 已配置=True(这是 OAuth 2.0 Client ID,不是 API Key)

用 X 授权并连接(读写) 先只读授权(排查)