> ## 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.

# Liên kết X

> Uỷ quyền X với Ayrshare

<Info>
  **Bắt đầu từ ngày 31 tháng 3 năm 2026**, X yêu cầu thông tin xác thực API của riêng bạn cho tất cả các hoạt động thông qua Ayrshare. Nếu bạn là người dùng API, bạn có thể bắt đầu sử dụng thông tin xác thực của riêng mình ngay lập tức. Xem [Hướng dẫn thiết lập X BYO Key](/dashboard/connect-social-accounts/x-twitter-byo-keys) để biết hướng dẫn từng bước.
</Info>

## Cách liên kết X (Twitter) với Ayrshare

Bạn có thể liên kết tài khoản X, trước đây được gọi là Twitter, với Ayrshare.
Khi uỷ quyền X với Ayrshare, bạn sẽ được chuyển hướng đến X để đăng nhập và uỷ quyền cho Ayrshare truy cập tài khoản X của bạn.

<Steps>
  <Step title="Trang Ayrshare Social Accounts">
    Nhấp vào nút **X/Twitter - Click to Link** trên trang Social Accounts.

    <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="Cung cấp thông tin xác thực X API của bạn">
    Trước khi liên kết, bạn sẽ được yêu cầu nhập **X Consumer Key** (API Key) và **X Consumer Secret** (API Secret) của mình. X hiện yêu cầu mọi tài khoản Ayrshare đăng ký một X Developer App và cung cấp API Key cùng API Secret để liên kết tài khoản X.

    <Info>
      **Thiết lập một lần cho mỗi tài khoản Ayrshare.** Bạn tạo X Developer App **một lần**, và cùng một API Key + API Secret được sử dụng cho mọi tài khoản X mà bạn liên kết về sau, bao gồm bất kỳ sub-profile hoặc end-user nào. Bạn **không** tạo một developer app riêng cho mỗi khách hàng.
    </Info>

    Nếu bạn chưa có các thông tin xác thực này, hãy làm theo [Hướng dẫn thiết lập X BYO Key](/dashboard/connect-social-accounts/x-twitter-byo-keys) để tạo một X Developer App và lấy API Key cùng API Secret của bạn. Dán cả hai giá trị vào modal, sau đó tiếp tục để liên kết tài khoản của bạn.

    <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="Lần đầu liên kết X">
    Khi bạn nhấp vào biểu tượng X trên trang Social Accounts, một cửa sổ đăng nhập X
    sẽ hiện lên - *hãy chắc chắn bạn cho phép pop-up*. Nếu bạn đã
    đăng nhập, vui lòng chuyển sang bước tiếp theo.

    Nhấp *Sign In*, làm theo hướng dẫn và nhập thông tin đăng nhập liên quan.

    <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="Uỷ quyền truy cập">
    Nếu bạn đã đăng nhập, nhấp **Authorize app** trên pop-up.

    Việc này sẽ uỷ quyền cho Ayrshare truy cập tài khoản X của bạn.

    <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="Xác nhận">
    Trang Social Accounts của bạn giờ đã được cập nhật với tài khoản 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>

## Thông tin bổ sung về X

* Vui lòng xem chi tiết về
  [đăng bài lên X](/apis/post/social-networks/x-twitter),
  [lấy analytics](/apis/analytics/overview),
  [quản lý bình luận](/apis/comments/overview), hoặc
  [truy xuất lịch sử.](/apis/history/overview)
* Để biết thêm thông tin về kích thước hình ảnh được khuyến nghị, vui lòng xem:

<Card title="Hướng dẫn hình ảnh và video" icon="link" href="/media-guidelines/x_twitter" horizontal />
