facebook js api - HTML5 canvas upload as a photo
===

Is there a way to convert an HTML5 canvas to a some sort of an image format so that it can be uploaded to facebook users application album though the js api,

I'm currently successfully uploading an image link to an album with the following function

FB.api('/me/photos', 'post', {
			message:'the message',
			url:imgURL}
      );