2014-02-25 161 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

感谢您的指导..我会尽量发布更好的答案 –