开发者

Upload image to site and facebook

开发者 https://www.devze.com 2023-03-30 01:43 出处:网络
I need to upload an image to my开发者_如何学Go site for storage, plus upload to facebook as well, hopefully in one process.I\'ve found the FB api for uploading to fb using their own dialogs, but that

I need to upload an image to my开发者_如何学Go site for storage, plus upload to facebook as well, hopefully in one process. I've found the FB api for uploading to fb using their own dialogs, but that won't do because I need it on my server too. I'm thinking that maybe uploading to my server first, then using the FB API to upload to FB. How would one handle the authentication on the server side? Maybe there's a better way?


Your idea to upload it to the server and then to Facebook is quite possible. Authenticate against the Facebook server client-side then send the picture and OAuth token to the server. Save the picture on your server then use the OAuth token to upload it onto the Facebook server.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号