Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't delete photo via Facebook API?

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?

like image 447
iosfreak Avatar asked Jun 14 '11 00:06

iosfreak


People also ask

Why will Facebook not let me delete a photo?

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.

How can I remove unwanted photos from Facebook?

Tap the photo to open it. Tap More Options below the photo. Tap Edit photo. Tap Delete, then tap Delete again to confirm.


2 Answers

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.

like image 91
Jeff Sherlock Avatar answered Sep 30 '22 04:09

Jeff Sherlock


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.

like image 45
mariomc Avatar answered Sep 30 '22 05:09

mariomc