title: Facebook new javascript sdk- uploading photos with it!
body: <p>I am trying to upload a photo to facebook album with this javaascript code.</p>
  
  <pre><code>FB.api('/me/photos', 'post', {    access_token: GetToken(),
                              name: 'uploaded photo',
                              source: '@http://example.com/example.jpg' }, 
              function(response) {
                  if (!response || response.error) {
                      alert('Error occured ' + response.error.message);
                  } else {
                      alert('Post Id: ' + response.id);
                  }
              });
  </code></pre>
  
  <p>Can someone help me with this code. This code is not returning anything.</p>