> ## 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 日起**，透過 Ayrshare 進行的所有 X 操作都需要你自己的 API 憑證。若你是 API 使用者，你可以立即開始使用自己的憑證。逐步說明請參閱 [X BYO 金鑰設定指南](/dashboard/connect-social-accounts/x-twitter-byo-keys)。
</Info>

## 如何將 X（Twitter）與 Ayrshare 連結

你可以將 X（前稱 Twitter）帳戶與 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 現在要求每個 Ayrshare 帳戶都須註冊一個 X Developer App，並提供其 API Key 與 API Secret，才能連結 X 帳戶。

    <Info>
      **每個 Ayrshare 帳戶一次性設定。** 你只需要**建立一次** X Developer App，同樣的 API Key + API Secret 會用於你之後連結的每一個 X 帳戶，包括所有子個人資料或終端使用者。你**不**需要為每個客戶另外建立一個 developer app。
    </Info>

    若你尚未取得這些憑證，請依照 [X BYO 金鑰設定指南](/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 />
