我正在尝试将 omniauth-facebook-access-token 与基于 JSON 的 API 一起使用。日志中出现以下内容:
Started POST "/auth/facebook_access_token/callback" for 192.168.37.129 at 2013-09-23 14:57:34 -0400
(facebook_access_token) Callback phase initiated.
ArgumentError - No access token provided.:
(gem) omniauth-facebook-access-token-0.1.2.1/lib/omniauth/strategies/facebook-access-token.rb:79:in `callback_phase'
(gem) omniauth-1.1.4/lib/omniauth/strategy.rb:226:in `callback_call'
我确实看到在请求中提供了 access_token
action_dispatch.request.request_parameters -> access_token
我怎样才能防止这些线路omniauth-facebook-access-token-0.1.2.1/lib/omniauth/strategies/facebook-access-token.rb
失败?
77 def callback_phase
78 if !request.params['access_token'] || request.params['access_token'].to_s.empty?
79 raise ArgumentError.new("No access token provided.")
80 end