我配置了我的宝石:
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
我该如何修理它?感谢您的帮助!