Can't delete photo via Facebook API?

前端 未结 3 1153
后悔当初
后悔当初 2020-12-19 11:17

Suddenly, I can\'t delete Facebook photos via the API. I get this error:

Array ( [error] => Array ( [type] => OAuthException [message] => (#3) Appli         


        
3条回答
  •  一向
    一向 (楼主)
    2020-12-19 12:12

    As of December 2012, apps can only delete photos they created.

    This deletion is done by simply calling a delete method on the resource ID. Using, for instance, a curl/file_get_contents on http://graph.facebook.com/[ID]?method=DELETE&access_token=[TOKEN] where [ID] is the photo id and [TOKEN] the access token for the user-application pair.

提交回复
热议问题