Upload photo with Facebook Graph API and [removed] convert canvas image to multipart/form-data as POST body?

前端 未结 2 1801
野性不改
野性不改 2021-01-03 12:56

From this SO question on the topic and from our research elsewhere on the web (like this Facebook doc link), it seems possible to upload an image from canvas.toDataURL() to

2条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-03 13:12

    Uploading a canvas as a picture on the server is possible. I did a test 2 years ago, you can look up the code: http://standupweb.net/canvas/swSaveCanvas.php

    That was using mootools, but it is really not needed there, everything in the save function is native JS code.

    Integrating that with facebook should not be a big problem

提交回复
热议问题