Fan count for a Facebook Fan Page

我怕爱的太早我们不能终老 提交于 2019-12-01 14:59:11

问题


I needed to pull the fan count for particular fan pages on Facebook. After digging through the API, I couldn't find a way to do this with the API "proper." Instead I fell back to a FQL query, and it worked quite well.

select fan_count from page where page_id = <FAN_PAGE_ID>

What did I miss about the Facebook API. Is this the only way to capture a fan count for a page? In general, how often do you use FQL for your requests as opposed to the exposed API methods?


回答1:


https://graph.facebook.com/cocacola

"fan_count" property. replace cocacola with your fan page's ID.

Please note that this property is being changed to "likes" in the November 2010 Roundup migration:

Graph API: The fan_count attribute on the Page object will be renamed to likes.

You can opt in to the November Roundup in your application's advanced settings page.



来源:https://stackoverflow.com/questions/1888515/fan-count-for-a-facebook-fan-page

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!