> ## Documentation Index
> Fetch the complete documentation index at: https://www.ayrshare.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# X 連携

> Ayrshare で X を認可する

<Info>
  **2026 年 3 月 31 日より**、X は Ayrshare を介したすべての操作について、独自の API クレデンシャルを必要とします。API ユーザーであれば、独自のクレデンシャルの使用をすぐに開始できます。ステップごとの手順については、[X BYO Key Setup Guide](/dashboard/connect-social-accounts/x-twitter-byo-keys) を参照してください。
</Info>

## Ayrshare と X (Twitter) を連携する方法

以前は Twitter として知られていた X アカウントを Ayrshare とリンクできます。
Ayrshare で X を認可する際、X にリダイレクトされてログインし、Ayrshare が X アカウントにアクセスすることを認可します。

<Steps>
  <Step title="Ayrshare Social Accounts ページ">
    Social Accounts ページで **X/Twitter - Click to Link** ボタンをクリックします。

    <img class="center" width="400" src="https://mintcdn.com/ayrshare-docs/g_Qu9NNvmnPtA4bJ/images/dashboard/x-twitter-click-to-link.webp?fit=max&auto=format&n=g_Qu9NNvmnPtA4bJ&q=85&s=03e611f505591b4881995b3f7bd66823" alt="Click on X Click to Link" data-path="images/dashboard/x-twitter-click-to-link.webp" />
  </Step>

  <Step title="X API クレデンシャルを提供する">
    リンクする前に、**X Consumer Key** (API Key) と **X Consumer Secret** (API Secret) を入力するよう求められます。X は現在、X アカウントをリンクするために、すべての Ayrshare アカウントで X Developer App を 1 つ登録し、その API Key と API Secret を提供することを要求しています。

    <Info>
      **Ayrshare アカウントごとに 1 回限りのセットアップ。** X Developer App を **1 回** 作成し、同じ API Key と API Secret が、今後リンクするすべての X アカウントに対して使用されます(サブプロファイルやエンドユーザーを含む)。顧客ごとに別々の Developer App を作成する必要は **ありません**。
    </Info>

    まだこれらのクレデンシャルをお持ちでない場合は、[X BYO Key Setup Guide](/dashboard/connect-social-accounts/x-twitter-byo-keys) に従って X Developer App を作成し、API Key と API Secret を取得してください。両方の値をモーダルに貼り付けて、アカウントのリンクに進んでください。

    <img class="center" width="400" src="https://mintcdn.com/ayrshare-docs/l1CVLz3RaF9NyPNv/images/dashboard/x-byok-modal.webp?fit=max&auto=format&n=l1CVLz3RaF9NyPNv&q=85&s=a729a68e01f527be25a18c62d9dde9d0" alt="Enter X Consumer Key and Secret" data-path="images/dashboard/x-byok-modal.webp" />
  </Step>

  <Step title="初回の X リンク">
    Social Accounts ページで X アイコンをクリックすると、X のサインインがポップアップします — *ポップアップを許可していることを確認してください*。すでにログイン済みの場合は、次のステップに進んでください。

    *Sign In* をクリックし、指示に従い、関連するログイン認証情報を入力します。

    <img class="center" width="400" src="https://mintcdn.com/ayrshare-docs/dKBti0xVDJrOZ19f/images/dashboard/x-twitter-login.webp?fit=max&auto=format&n=dKBti0xVDJrOZ19f&q=85&s=efbe2aa315b03d5491e24f0b9640c3a4" alt="Login via X account" data-path="images/dashboard/x-twitter-login.webp" />
  </Step>

  <Step title="アクセスを認可する">
    すでにサインインしている場合は、ポップアップで **Authorize app** をクリックします。

    これにより、Ayrshare が X アカウントにアクセスすることが認可されます。

    <img class="center" width="300" src="https://mintcdn.com/ayrshare-docs/dKBti0xVDJrOZ19f/images/dashboard/x-twitter-authorize.webp?fit=max&auto=format&n=dKBti0xVDJrOZ19f&q=85&s=5362a332f3ec349a0b169174a554a1d7" alt="Click Authorize app" data-path="images/dashboard/x-twitter-authorize.webp" />
  </Step>

  <Step title="確認">
    Social Accounts ページが X アカウントで更新されます。

    <img class="center" width="300" src="https://mintcdn.com/ayrshare-docs/dKBti0xVDJrOZ19f/images/dashboard/x-twitter-linked.webp?fit=max&auto=format&n=dKBti0xVDJrOZ19f&q=85&s=f109df752f758fe82bf402fd69ed6ce8" alt="X Confirmation" data-path="images/dashboard/x-twitter-linked.webp" />
  </Step>
</Steps>

## X に関するその他の情報

* 詳細については、こちらを参照してください:
  [X への投稿](/apis/post/social-networks/x-twitter)、
  [アナリティクスの取得](/apis/analytics/overview)、
  [コメントの管理](/apis/comments/overview)、
  [履歴の取得](/apis/history/overview)。
* 推奨される画像サイズの詳細については、こちらを参照してください:

<Card title="画像と動画のガイドライン" icon="link" href="/media-guidelines/x_twitter" horizontal />
