我有一個Facebook應用程序,我想刪除一些圖片。我有了pictureid和access_token,並且嘗試了我在本網站上找到的每種方法,但每次都會遇到錯誤。使用CURL從Facebook中刪除圖片
這怎麼可以用CURL刪除?我已經開始:
$ch = curl_init();
$url = 'https://graph.facebook.com/'.$uid.'/photos?access_token='.$access_token;
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "DELETE");
echo $data = curl_exec($ch);
的可能重複[?無法刪除通過Facebook API的照片] (http://facebook.stackoverflow.com/questions/6337969/cant-delete-photo-via-facebook-api) – Igy 2012-07-12 18:52:10