2011-08-05 49 views
0
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缺少URI參數Facebook連接

回答

0

發現問題,非常不尋常的想法。如果有人能夠在這方面進行擴展,那將會很棒

當我使用Net :: HTTP(ruby客戶端)進行調用時,它不起作用,儘管當我使用「捲曲」時,事情工作得很好!