Created
February 12, 2013 07:24
-
-
Save amite/4760782 to your computer and use it in GitHub Desktop.
Fix for faraday error with omniauth.rb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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