Skip to content

Using source as a parameter to upload photo from angular ui-upload module as multipart form data #4

Description

@mexiter

var myUpload = document.getElementById('canvas2'); urldata=myUpload.toDataURL("image/png"); FB.api('/photos', 'POST', { message: 'testing Graph API photo', access_token: accessToken, url: urldata, no_story:true }, function (response) { if (!response || response.error) { console.log('Error occured:' + response.error.message); } else { alert('Post ID: ' + response.id); } } );

Response -" Error occured:(#324) Missing or invalid image file "

I found a gist: https://gist.github.com/nseo/2910244

but I can't seem to implement it.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions