https://graph.facebook.com/oauth/access_token?client_id=[app-id]&redirect_uri=[url]&client_secret=[secret]&code=[code]
warning: peer certificate won't be verified in this SSL session
=> #<Net::HTTPBadRequest 400 Bad Request readbody=true>
irb(main):005:0> resp.body
=> "{\"error\":{\"type\":\"OAuthException\",\"message\":\"Missing redirect_uri parameter.\"}}"
知道问题是什么吗?因为,我包括redirect_uri
答案 0 :(得分:0)
当我使用Net :: HTTP(ruby客户端)进行调用时,它不起作用,尽管当我使用“curl”时,事情完全正常!