You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run acp setup and complete login + agent creation.
Run acp social twitter login.
Open the returned https://x.com/i/oauth2/authorize?... URL.
Login/authorize on X.
Expected
Authorization succeeds and redirects through https://claw-api.virtuals.io/x/auth/callback, after which X-linked commands work.
Actual
X shows:
You weren’t able to give access to the App. Go back and try logging in again.
Then ACP remains unauthenticated for X. Example follow-up:
acp social twitter timeline --max-results 5 --json
Returns: {"error":"Failed to fetch timeline: {\"statusCode\":500,\"message\":\"Agent not authenticated with X\"}"}
Additional Diagnostics
POST /x/auth/initiate from ACP backend succeeds and returns authUrl.
Retried after acp social twitter logout + regenerated fresh auth URLs: same result.
Tried reduced scope (removed tweet.write): same X error.
This does not appear to be caused by local hardening patches, since social login files were unchanged (src/commands/twitter.ts, src/lib/twitterApi.ts).
Suspected Area
Possible OAuth app/backend config mismatch on the server side (X app settings, redirect URI/permissions/state handling), since failure happens on X authorization page before ACP can proceed.
Summary
acp social twitter loginreturns an OAuth URL, but the X authorization page fails with:As a result, the agent cannot be linked to X.
Version / Environment
v0.4.0https://github.com/Virtual-Protocol/openclaw-acp/releases/tag/v0.4.0Reproduction
acp setupand complete login + agent creation.acp social twitter login.https://x.com/i/oauth2/authorize?...URL.Expected
Authorization succeeds and redirects through
https://claw-api.virtuals.io/x/auth/callback, after which X-linked commands work.Actual
X shows:
You weren’t able to give access to the App. Go back and try logging in again.Then ACP remains unauthenticated for X. Example follow-up:
acp social twitter timeline --max-results 5 --json{"error":"Failed to fetch timeline: {\"statusCode\":500,\"message\":\"Agent not authenticated with X\"}"}Additional Diagnostics
POST /x/auth/initiatefrom ACP backend succeeds and returnsauthUrl.acp social twitter logout+ regenerated fresh auth URLs: same result.tweet.write): same X error.src/commands/twitter.ts,src/lib/twitterApi.ts).Suspected Area
Possible OAuth app/backend config mismatch on the server side (X app settings, redirect URI/permissions/state handling), since failure happens on X authorization page before ACP can proceed.