Facebook Graph API - delete like

后端 未结 5 1775
广开言路
广开言路 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:13

    It's not the 'like' that has an ID, it's the post - which is why the api call uses '/POST_ID/likes' as a target - if you delete '/POST_ID', it'll get rid of the post, but if you delete '/POST_ID/likes' it'll get rid of the user's 'like' for that post.

提交回复
热议问题