Skip to main content
AI agentをユーザーのTwitterアカウントに接続すると、特定のキーワードやメンションの監視、特定の種類のツイートへの自動返信、新規コンテンツの予約投稿などが可能になります。

XをAuth0に接続する

1

Xの設定

  1. X Developerアカウントページにアクセスし、サインアップします。
  2. 画面の指示に従って、X Developer Consoleで新しいアプリを作成します。
  3. Consent Screen Informationフォームに入力します。
  4. Project and Appsに移動してアプリを選択し、Settingsを開きます。
  5. User authentication settingsに移動し、Editを選択します。
  6. 権限を構成します。
  7. App typeを選択して、OAuth 2.0認証を有効にします。
  8. OAuthリダイレクトURLを構成します。
    • Redirect URL: https://YOUR_AUTH0_DOMAIN/login/callback
    You can find the Auth0 domain in the Auth0 Dashboard.You can find this under Applications > [Your Application] > Settings > Basic Information > Domain.If you are using the custom domains feature, your Auth0 domain is the custom domain. You can find this under Branding > Custom Domains.
  9. Saveを選択します。
  10. App settingsページのまま、Keys and tokensタブを選択します。
  11. Client IDとclient secretをコピーします。
Xの設定の詳細については、X開発者ドキュメントを参照してください。
2

Auth0の設定

このガイドでは、Auth0 で X 接続をセットアップする手順を説明します。 このような接続を使用して、ユーザーに代わってアプリから第三者 API を呼び出す方法を一連の流れで示す例については、 ユーザーに代わって第三者 API を呼び出すクイックスタートをお読みください。

Token Vaultの設定例

Xの接続でToken Vaultを設定するには、アプリケーションで次のコードスニペットを使用します。

Next steps