SL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed


Make sure your application root config/initializer has omniauth file. 
RAILS_ROOT/config/initializers/omniauth.rb if yes double check is 
this file contain following code.

Rails.application.config.middleware.use OmniAuth::Builder do
    provider :facebook, 'APP_ID', 'APP_SECRET'
end
If you have still same issues, U need to modify above code again,

If your app  running on linux OS add this code
Rails.application.config.middleware.use OmniAuth::Builder do
    provider :facebook, APP_ID, APP_SECRET, {:client_options => \
   {:ssl => {:ca_file => "/usr/lib/ssl/certs/ca-certificates.crt"}}}
end

If your app  running on window OS add this code

Rails.application.config.middleware.use OmniAuth::Builder do
    provider :facebook, FACEBOOK_APP_ID, FACEBOOK_APP_SECRET,\
   {:client_options => {:ssl => {:verify => false}}}
end

Now your application should run, if still problem. Start your server...
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s