I am using OmniAuth 0.2.3 with Rails 3.0.7 for facebook authentication. I got the application identifiers for localhost and hosting separately. When tested in a local host, everything works like a charm. However, when I run my web application on the hosting server, I continue to receive the "invalid_credentials" error.
My configurations on the hosting server are shown below:
Ruby (ruby 1.8.7 (2009-06-08 patchlevel 173) [x86_64-linux]) Ruby on Rails (3.0.7) OmniAuth (0.2.3) bundler (1.0.2)
Gemfile
gem 'rails', '>= 3.0.6' gem 'mysql2' gem 'kaminari' gem 'omniauth'
configurations / Initializers / omniauth.rb
Rails.application.config.middleware.use OmniAuth::Builder do provider :facebook, 'app_id', 'app_secret', {:scope => "email, publish_stream", :client_options => {:ssl => {:ca_path => "/etc/pki/tls/certs", :ca_file => "/etc/pki/tls/cert.pem"}}} end
Error url
http:
Any advice or suggestions would be helpful. Thanks.
source share