title: Problems by uploading Photo to album by Facebook API - PHP
body: <p>I have problems to upload a photo to an album by the <code>facebook API</code>. this is my code.</p>
  
  <pre><code>$facebook-&gt;setFileUploadSupport(true);
  
      //Create an album
      $album_details = array(
              'message'=&gt; 'Message',
              'name'=&gt; 'Album Name'
      );
      $create_album = $facebook-&gt;api('/me/albums?access_token='.$access_token, 'post', $album_details);
  
      //Get album ID of the album you've just created
      $album_id = $create_album['id'];
  
      echo $album_id." - ";
  
      //Upload a photo to album of ID...
      $photo_details = array();
  
      $img = "app.jpg";
  
      $photo_details['source'] = '@' . $img;
      $photo_details['message'] = 'Wow.. cool image!';
  
      $upload_photo = $facebook-&gt;api('/'.$album_id.'/photos?access_token='.$access_token, 'post', $photo_details);
  </code></pre>
  
  <p>When i upload the image with a form, it works! but this code does not upload the image into the album. 
  I have tried also with <code>CURL</code> but there is nothing... i don't know where the problem is... </p>