验证失败! Omniauth与facebook

时间:2017-03-30 10:51:37

标签: ruby-on-rails facebook devise omniauth

我配置了我的宝石:

gem 'omniauth'
gem 'omniauth-facebook'
gem 'omniauth-oauth2', '~> 1.3.1'

我的路线:

devise_for :workers, path: :users, controllers: {
                        omniauth_callbacks: 'users/omniauths'}

和我的devise.rb:

config.omniauth :facebook_app1, ENV['FACEBOOK_KEY'], ENV['FACEBOOK_SECRET']

我在服务器日志中收到的错误:

omniauth: (facebook_app1) Authentication failure! invalid_credentials: OAuth2::Error

我该如何修理它?感谢您的帮助!

0 个答案:

没有答案