0
我正在使用考拉發佈到用戶的牆上。但是帖子在我的FB測試用戶的牆上顯示了兩次。考拉寶石發佈兩次到Facebook?
的事情是,當我刪除所創建的兩個相同的FB的職位之一,既被刪除。所以這看起來是FB的一個問題。任何想法爲什麼個人職位在FB上顯示兩次?
def post_to_fb
if !fb_shared.present?
token = user.oauth_token
@graph = Koala::Facebook::API.new(token)
result = @graph.put_connections(user.uid, "feed", message: "Test message")
else
return nil
end
end
編輯
須─如果我嘗試再次發佈此相同的消息,考拉檢測重複的職位,並阻止其發佈:
Koala::Facebook::ClientError: type: OAuthException, code: 506, error_subcode: 1455006, message: Duplicate status message, error_user_title: Duplicate Status Update, error_user_msg: This status update is identical to the last one you posted. Try posting something different, or delete your previous update.
...所以我很確定我的代碼/考拉不會發布兩次。
編輯2
事實證明,這只是發生,如果它是用戶的第一次新聞發佈。如果我發另一條留言,FB刪除第一複製信息,並顯示第二條消息只有一個副本,如預期...
沒什麼大不了的,但將是很好的解決這個問題。