title: How to post a photo to my facebook ablum with javascript SDK?
body: <p>I googled around for a few hours about posting photos on FB with JS SDK but have no luck so far. Here is my code, according to <code>/me/permissions</code>, I saw "photo_upload: 1 publish_stream: 1" in my console log, so i am quite sure i have the permissions to upload a photo. however, the exception as stated "An unknwon error has occured", am I doing something wrong?</p>
  
  <pre><code>//check permissions
  FB.api('/me/permissions',function(fbResponse){
        console.log(fbResponse);
  });
  
  //post to feed
  FB.api("me/feed","post",{
                      message:"wtf - welcome to facebook"
                   },function(fbResponse){
                            if(!fbResponse||fbResponse.error)
                                console.log(fbResponse.error);
                            else 
                                console.log(fbResponse.id);
  });
  
  //post to album
  FB.api("me/photos","post",{
                      message:"wtf - welcome to facebook",
                      url:"https://my_domain.com/image.jpg"
                  },function(fbResponse){
                      if(!fbResponse||fbResponse.error)console.log(fbResponse.error);
                      else console.log(fbResponse.id);
                  });
  </code></pre>
  
  <p>Response:</p>
  
  <blockquote>
    <p>Object {message: "An unknown error has occurred.", type: "OAuthException", code: 1}</p>
  </blockquote>