Using Facebooks javascript api to post multipart/form-data encoded image
问题 According to Facebook's Graph documentation on the user photos edge, it's possible to post a photo from javascript using multipart/form-data encoded binary image. https://developers.facebook.com/docs/graph-api/reference/v2.2/user/photos /* make the API call */ FB.api( "/me/photos", "POST", { "source": "{image-data}" }, function (response) { if (response && !response.error) { /* handle the result */ } } ); The problem is there doesn't appear to be any sample documentation anywhere on the net