开发者

Upload image to site and facebook

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜