7

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?

MAK
  • 773
  • 4
  • 9
  • 30
  • Please post exact details of the error message which you are getting, including the full backtrace if there is one. Also post the relevant parts of the code you are using. This way, someone may be able to help you. – Alex D Feb 01 '12 at 13:23
  • The following error message i am getting: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed – MAK Feb 01 '12 at 14:02

1 Answers1

20

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
Alex D
  • 29,755
  • 7
  • 80
  • 126