{{ __('Admin - X publishing') }}

X {{ __('publishing') }}.

{{ __('Workspaces connect an X account via OAuth and publish or schedule posts through the official X API — right from the social calendar. X has no usable messaging API for this, so it is a publishing channel only.') }}

{{ __('All channels') }}
{{-- Pay-per-use warning --}}
{{ __('X is pay-per-use. If you set a platform app here, every workspace\'s posts bill THIS X account. The recommended setup is BYO-app — each workspace enters its own X keys in its settings, so X bills them directly.') }}
@csrf {{-- Enable + status --}}
{{ $connected_count }} {{ __('account(s) connected platform-wide') }}
{{-- App credentials (optional platform fallback) --}}
{{ __('Platform X app (optional fallback)') }}

{{ __('Create an app at developer.x.com with OAuth 2.0 (type: Web App / Confidential client). Scopes: tweet.read, tweet.write, users.read, media.write, offline.access. A workspace can also enter its OWN X keys in its settings — those take priority over these.') }}

{{-- Paste this into your X app. --}}
{{ __('Paste this into your X app') }}
{{ __('OAuth 2.0 Callback / Redirect URI') }} {{ __('X app → User authentication settings') }}
{{ $redirect_uri }}
{{-- Setup steps --}}
{{ __('Setup steps') }}
    @foreach ([ __('Go to developer.x.com → create a Project + App. Note it is pay-per-use.'), __('In the App, open "User authentication settings": type = Web App (Confidential client), App permissions = Read and write.'), __('Add the OAuth 2.0 redirect URI above as a Callback URI.'), __('Copy the OAuth 2.0 Client ID and Client Secret into the fields above (or into a workspace\'s own settings for BYO) and Save.'), __('Turn on "Enable X platform-wide", then grant the X plan feature to the plans that should get it.'), __('A workspace user opens X, clicks Connect, authorizes, and can then publish or schedule posts.'), ] as $i => $step)
  1. {{ $i + 1 }} {{ $step }}
  2. @endforeach