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

# 如何處理重複貼文 | Ayrshare 文件

> 了解使用 API 時為何會發生重複的社群媒體貼文，以及如何利用 Ayrshare 的重複貼文防護機制來預防與解決此問題。

如果你看到重複貼文並且出現兩個貼文 ID，最可能的原因是你不小心送出了兩次相同的 API 發文請求。
我們的系統會檢查重複貼文，因此第二則貼文應會被擋下。
不過，若兩則貼文是在完全相同的時間發送，兩者仍可能都被發佈。

如果你需要找出重複貼文，可以利用[發佈貼文回應中的資訊](/help-center/technical-support/dealing_with_duplicate_posts#find-the-duplicate-post)。

有幾個方法可以驗證是否確實有兩次發文呼叫。

## 檢查你的系統紀錄

最好的起點是你自己的系統紀錄與程式碼。

<ul className="custom-list">
  <li>在紀錄中尋找 API 發文請求與回應，確認是否有兩次請求。</li>

  <li>
    確認該發文請求並未意外啟動自動重試。舉例來說，若該
    請求耗時超過 30 秒才收到回應，系統會自動重試——
    有時較大的圖片或影片會讓社群平台處理時間變長。
  </li>
</ul>

## 使用 Ayrshare 儀表板

前往 Ayrshare 儀表板並切換至相關的使用者設定檔。接著在搜尋框中輸入貼文 ID。系統僅載入最近的 100 則貼文，因此你可能需要載入更多才能找到這些貼文 ID。

展開 *API Request & Response* 折疊區塊，Request 部分會顯示請求的 <i>create time</i>。
比對兩則貼文的時間，看看它們是否在不同時間點被發送。
兩個不同的 Post ID 也代表可能是兩次不同的 API 請求。

這些步驟應能協助你判斷造成重複貼文的原因。若需任何協助，歡迎告訴我們。

## 找出重複的貼文

發佈貼文的回應中含有找到的重複貼文詳情。

例如：

```json Duplicate Post Details theme={"system"}
{
  "errors": [
    {
      "action": "post",
      "status": "error",
      "code": 137,
      "message": "Duplicate or similar content posted within the same two day period. The social networks prohibit duplicate content and ban accounts that do not comply. https://www.ayrshare.com/docs/help-center/technical-support/dealing_with_duplicate_posts#dealing-with-duplicate-posts",
      "details": "Duplicate found in user profile: John Profile, post id: pRo7vkM1vYVMJu8sJa, and refId: ace4bcd07336582e2fd9",
      "platform": "facebook"
    }
  ]
}
```

你可以使用 `post id` 與 `refId` 在 Ayrshare 儀表板中找到重複貼文——請務必先切換到相應的使用者設定檔——或使用[歷史紀錄 API 端點](/apis/history/get-history-id)。

## 更多關於重複貼文的資訊

更多資訊請參閱[重複與相似貼文](/testing/post-verification#duplicate-and-similar-posts)。
