Facebook Redirect url in ruby on rails open ssl error
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?
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
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