Omniauth 0.2.3 invalid_credentials

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://my_url/auth/failure?message=invalid_credentials 

Any advice or suggestions would be helpful. Thanks.

+4
source share
1 answer

I know this is an old question, by the way, I'm interested.

Have you tried updating your credentials on the app settings page on facebook? if you left "localhost" then repeat this error.

also try restoring the API keys and try again.

amuses

0
source

All Articles