Facebook API - delete status

前端 未结 6 899
你的背包
你的背包 2021-01-02 20:29

In PHP, I\'m using curl to send a delete to the fb graph api - and yet I\'m getting the following error;

{\"error\":{\"type\":\"GraphMethodException\",\"mes         


        
6条回答
  •  北海茫月
    2021-01-02 21:12

    About this answer:

    Fixed! You have to prepend the userid to the object ID when deleting: DELETE https://graph.facebook.com/673509687_104812882909249?access_token={access_token} where 673509687 is my userID and 104812882909249 is the objectID

    Unfortunately this will only work with a user-accesstoken and not when you try to delete an apprequest on the server (with the app-access-token) using for example the PHP language.

    If you have a solution for deleting apprequests using the app-access-token then please describe it. Thanks for your help!

提交回复
热议问题