Ruby中的Facebook重定向URL在Rails上打开ssl错误

问题描述:

我遵循了Ryan在第235集中所述的omniauth devise facebook应用程序.在用户授权后,我们在

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...

以下是Facebook设置: 应用程序域:本地主机 siteurl:locahost:3000/ 画布网址: http://localhost:3000/auth/facebook/

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?

在一个项目中,我们必须将此代码添加到config/environments/development.rb中,以使Facebook connect可以用于本地开发:

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