Facebook Redirect url in ruby on rails open ssl error

怎甘沉沦 提交于 2019-12-09 11:12:44

问题


I have followed the omniauth devise facebook app as explained by Ryan in episode 235.After the user authorizes we are getting the error at http://localhost:3000/auth/facebook/callback?code=13444...

The following are the facebook settings : App Domain : localhost siteurl: locahost:3000/ canvas url: http://localhost:3000/auth/facebook/

please tell me where am i going wrong?


回答1:


In one project, we had to add this code to config/environments/development.rb to get Facebook connect working for local development:

OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE



回答2:


I was working in rails 4 and this link gave me what I needed to get it working. Just follow the instructions. You'll need to download rails installer then run two command line functions.

This link https://gist.github.com/fnichol/867550



来源:https://stackoverflow.com/questions/9095755/facebook-redirect-url-in-ruby-on-rails-open-ssl-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!