Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 515
MAK Avatar asked Feb 01 '12 12:02

MAK


1 Answers

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
like image 140
Alex D Avatar answered Sep 28 '22 06:09

Alex D