facebook graph API endpoint for getting “likes, shares, comments” for post(s)

后端 未结 4 1649
长情又很酷
长情又很酷 2021-01-31 19:26

Facebook is planning to drop support for FQL after V2.0 https://developers.facebook.com/docs/apps/changelog/#v2_0_fql

The below task could be done easily with FQL

4条回答
  •  日久生厌
    2021-01-31 19:41

    "https://graph.facebook.com/v2.2/PAGEid_POSTid/? fields=shares&access_token=YOUR_ACCESS_TOKEN";

    I am using above mentioned endpoint.

    Replace $pageID and $videoID (post id) with your variables.

    "https://graph.facebook.com/v2.2/" . $pageID."_".$video->id . "/?fields=shares&access_token=YOUR_ACCESS_TOKEN";

提交回复
热议问题