title: upload photo to album on facebook with FB.api javascript?
body: <p>Im trying to upload a photo to one of my albums on facebook, with the below code, but no upload and now error?
  What are I missing?
  I have a album thats called Loggfoton where I want the photos to end up, or if there is no album at all, then that one is created.</p>
  
  <blockquote>
    <p>function uploadphoto(){<br>
    var imgURL =
    "http://www.mydomain.se/armani1.jpg";</p>
  
  <pre><code>    FB.api('/me/photos', 'post', {
          message: 'photo description',
          access_token: accessToken, 
          url: imgURL
      }, function (response) {
  
          if (!response || response.error) {
              alert('Error occured:' + response);
          } else {
              alert('Post ID: ' + response.id);
          }
  
      });           }
  </code></pre>
  </blockquote>
  
  <p>Any input really appeciated!
  Thanks!</p>