title: Post a picture in my application's album with Facebook api
body: <p>I have an application on Facebook where I select a picture and I can upload to an album associated with the application.</p>
  
  <p>I found some code about it, but until now, I could upload only to my personal account.</p>
  
  <p>With this code I can get all the album details of the application:</p>
  
  <pre><code>$facebook-&gt;api('/app_id/albums?access_token='.$acces_token);
  </code></pre>
  
  <p>That's cool, I get a list, but after this, I do the following:</p>
  
  <pre><code>$upload_photo = $facebook-&gt;api('/'.$album_id.'/photos?access_token='.$acces_token, 'post', $photo_details);
  </code></pre>
  
  <p>And I always get the following exeption:
  Fatal error: Uncaught OAuthException: (#100) Invalid ID for album owner thrown in</p>
  
  <p>What is the problem?!
  Maybe I don't have the right permissions? Or am I missing something?</p>
  
  <p>I even tried this:</p>
  
  <pre><code>$create_album = $facebook-&gt;api('/app_id/albums?access_token='.$acces, 'post', $album_details);
  $album_uid = $create_album['id'];
  $upload_photo = $facebook-&gt;api('/'.$album_uid.'/photos?access_token='.$acces, 'post', $photo_details);
  </code></pre>