我尝试使用此帖OmniAuth: Overview
中的代码连接到Facebook我的应用程序正常运行,但当我连接到脸书时,我有这个错误:
我的Facebook链接:
https://www.facebook.com/dialog/oauth?client_id=APP_ID&redirect_uri=http%3A%2F%2Flocalhost%3A3000%2Fusers%2Fauth%2Ffacebook%2Fcallback&response_type=code&scope=email&state=2576839c19b169d8be1dd4921a35aaa3d1f146946fdcc923
我正在使用设计连接
devise_for :users, :controllers => { :omniauth_callbacks => "omniauth_callbacks" }
my gemfile
gem 'daemons', '~> 1.1.9'
gem 'devise'
gem 'omniauth'
gem 'omniauth-facebook'
gem 'jquery-rails'
gem 'jquery-ui-rails', '~> 5.0.2'
group :development do
gem 'webrick', '~> 1.3.1'
end
请帮我解决这个问题:)