omn​​iauth 0.2.6 rails的Facebook身份验证问题(invalid_credentials)

时间:2011-06-28 16:13:58

标签: ruby-on-rails omniauth

当我尝试通过omniauth gem ver.0.2.6登录facebook时出错。 它显示invalid_credentials。 http://localhost:3000/auth/failure?message=invalid_credentials 我在initializer / omniauth.rb

中使用此代码
Rails.application.config.middleware.use OmniAuth::Builder do
  provider :facebook,
           "app_id",
           "app_secret",
           {:scope=>[:email,:user_birthday],:client_options => {:ssl => {:ca_path => "/etc/ssl/certs"}} }
end

Started GET "/auth/facebook" for 127.0.0.1
Started GET "/auth/facebook/callback?code=0b49kydcswTkMNfx_C9BwhE0Z-g9kO_oE0aJ2F4ghy0.eyJpdiI6IjlYaXRxTF9NdFBGbWtBUk9ZUXVSdUEifQ.DsDgdFUpuC6Z_B_m8j1MiAN1cQRS_Mcr9VvvZvSurs0wUyCRAvjDDEYjE6b6_VUF0KNkeLUy9lJCF2IF2BBGOeAt95fggdI49jZKwqo842z3cdsJQ2kZTQcQrs0jinxn" for 127.0.0.1

这就是我得到的。我仔细检查了app_id和app_secret一切都好,并尝试了php版本,它工作正常。所以这没有错误。

那我怎么能找到至少有关错误的更多信息呢?或者如何解决这个问题?

0 个答案:

没有答案