Skip to content

Instantly share code, notes, and snippets.

@amite
Created February 12, 2013 07:24
Show Gist options
  • Select an option

  • Save amite/4760782 to your computer and use it in GitHub Desktop.

Select an option

Save amite/4760782 to your computer and use it in GitHub Desktop.
Fix for faraday error with omniauth.rb
# First at the root of your project, do wget http://curl.haxx.se/ca/cacert.pem and then change the config/initializers/omniauth.rb file to point to the cert file
OmniAuth.config.logger = Rails.logger
Rails.application.config.middleware.use OmniAuth::Builder do
provider :facebook, FACEBOOK_CONFIG['app_id'], FACEBOOK_CONFIG['secret'],
:scope => 'email,publish_actions', :display => 'popup',
:client_options => {:ssl => {:ca_file => "#{::Rails.root}/cacert.pem"}}
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment