Facebook Graph API - delete like

后端 未结 5 1777
广开言路
广开言路 2020-12-15 12:11

I\'m developing an app for Facebook in PHP, part of which lists the user\'s \"likes\". I would like to add a link next to each like so that the user can manage their likes b

5条回答
  •  情书的邮戳
    2020-12-15 12:26

    You unlike using access_token which used to make this like.

    Pseudocode:

    to like:

    FacebookGraphApi::getInstance()->setAccessToken('xxx')->post('xxxxxx/likes')
    

    to unlike:

    FacebookGraphApi::getInstance()->setAccessToken('xxx')->delete('xxxxx/likes')
    

提交回复
热议问题