2014-02-25 159 views
1

我需要知道這是可能的使用Facebook API?Facebook的API喜歡

  1. 獲得大家喜歡我的頁面(少於50人)
  2. 得到他們喜歡
  3. 查詢,看看是否任何喜歡我的網頁的人喜歡我的競爭對手頁面以及所有頁面?

感謝,

回答

3

答:

  1. 沒辦法。參考:graph api - retrieve list of likes of a page

  2. 請求https://graph.facebook.com/ {user-id}/likes endpoint。文檔:https://developers.facebook.com/docs/graph-api/reference/user/likes/

  3. 請求https://graph.facebook.com/ {用戶ID} /喜歡/ {頁-ID}端點。文檔:https://developers.facebook.com/docs/graph-api/reference/user/likes/

3.1請求FQL檢查多個用戶ID只在一個API調用,例如,如果從列表中的用戶ID之一(例如4,5,12345,777)有喜歡的頁面,它會返回相關的用戶ID,即12345,如此截圖所示。

SELECT UID FROM page_fan WHERE PAGE_ID = 279183048899677和UID在(4,5,12345,777)

enter image description here

文檔:https://developers.facebook.com/docs/reference/fql/page_fan/駁回FQL後

+0

2)和3)只有在您首先通過應用程序收集用戶訪問令牌時才能使用。 – Tobi

0

Facebook 8 Augsut 2016現在您只需要使用Graph API

+0

而不是發佈鏈接作爲答案添加一些文字來解釋這個答案如何幫助OP在修復當前issue.Thanks –

+0

感謝您的指導..我會盡量發佈更好的答案 –