Suddenly, I can't delete Facebook photos via the API. I get this error:
Array ( [error] => Array ( [type] => OAuthException [message] => (#3) Application does not have the capability to make this API call. ) )
What does this mean? It suddenly stopped working. Is Facebook blocking this? I have read that. Is there a work-around?
You cannot delete photos you did not upload to Facebook yourself. You can, however, remove the tag, and that removes the photo from your profile. Additionally, you can ask friends to remove Facebook photos from their profiles.
Tap the photo to open it. Tap More Options below the photo. Tap Edit photo. Tap Delete, then tap Delete again to confirm.
You are correct; there is currently no public access to delete photos from an album via the Facebook API.
This is intentional and there are no known workarounds. An App can delete open graph actions or Feed stories that it has made, but not most other types of content, including photos.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With