Skip to main content
AI agentをユーザーのSnapchatアカウントに接続すると、写真、動画、リンクなどのコンテンツを共有できます。

SnapchatをAuth0に接続する

1

Snapchatの設定

  1. Snapchat Developerアカウントのページにアクセスしてサインアップします。
  2. Snap Kit Portalに移動し、Snapchat Developer Portalで新しいアプリを作成します。
  3. 使用するライブラリを選択します。少なくともLogin Kitは必須です。アプリでLogin Kitが有効になっていることを確認してください。
  4. 機密のOAuth 2.0 Client IDとclient secretを生成し、以下を控えておきます。
    • Client ID (OAuth client_id)
    • Client Secret (OAuth client_secret)
  5. リダイレクトURIを構成します。
    • リダイレクト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.
    Snapchatでは、リダイレクトURIにHTTPSを使用する必要があります。
  6. Login Kitのスコープを選択します。
    • https://auth.snapchat.com/oauth2/api/user.display_name - ユーザーの表示名を取得
    • https://auth.snapchat.com/oauth2/api/user.external_id - 一意のユーザーIDを取得
    • https://auth.snapchat.com/oauth2/api/user.bitmoji.avatar- Bitmoji用 (任意)
  7. 左側のパネルでVersions > [Your App Name]に移動し、Login KitセクションまでスクロールしてRedirect URIsを追加します。
Snapchatの設定について詳しくは、Login with Snapchatのドキュメントを参照してください。
2

Auth0の設定

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

Token Vaultの設定例

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

Next steps