开发者

Upload a Photo to Facebook with REST API and Ruby

It's much harder than you'd think:

http://wiki.developers.facebook.com/i开发者_运维百科ndex.php/Photos.upload

The tricky part is how to create the MIME multi-part message in Rails, which Facebook requires. I'm also using a Ruby Facebook API gem (mini_fb) which signs my other requests, and in addition to having no idea how to set up the MIME multi-part, even if I did I'm not sure how to add in the required signature values with the gem.

Please help!


Why not just use Facebooker? Or even if you have some reason not to you can reverse engineer the upload photo method.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜