Reputation: 423
I had a problem when I try to delete a photo uploaded by the PHP SDK, the error is: Permissions error thrown in base_facebook.php on line 1237
The code is:
$facebook->setAccessToken(USERACCESSTOKEN);
$facebook->api("/PHOTOID?access_token=PAGEACCESSTOKEN","DELETE");
Upvotes: 1
Views: 447
Reputation: 3644
According to Facebook API documentation you can delete photos posted from your app
by issuing an HTTP DELETE request to PROFILE_ID/photos with the user access token or app access_token.
Upvotes: 0
Reputation: 8401
Facebook does not allow deletion of photos through third party apps. Its a security restriction.
Upvotes: 1