Request to get total count of Facebook page likes in v2.3 API

前端 未结 3 2151
攒了一身酷
攒了一身酷 2020-12-31 10:13

Previously I was using FQL for this, but this is deprecated as of v2.1 and I\'m moving over to v2.3 using the graph edge \"likes\".

Here is my URL:

h         


        
3条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-31 10:47

    Anyone stumbling onto this answer now (April 2016) will get frustrated because the accepted answer no longer works in v2.6

    ?fields=likes and /likes now return the same result -> the pages that the page likes.

    To get the number of fans, you now need to use fields=fan_count

    https://graph.facebook.com/pepsius/?fields=fan_count&access_token=
    

    As you can see above, you can also make the request directly with the pagename, no need to fetch the pageID.

提交回复
热议问题