omn​​iauth-facebook-access-token不接受JSON access_token

时间:2013-09-23 19:55:36

标签: ruby-on-rails json facebook omniauth

我正在尝试使用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

0 个答案:

没有答案