title: Delete pictures from Facebook using CURL
body: <p>I have a Facebook app, where I want to delete some pictures. I have the pictureid and access_token, and have tried every methods I have found on this site, but I get errors every time.</p>
  
  <p>How can this be deleted with CURL?  I've started with this:</p>
  
  <pre><code>$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);
  </code></pre>