Pav*_* K. 2 facebook ruby-on-rails devise omniauth
我在我的网站上登录OmniAuthable Facebook.用户登录时使用:
link_to user_omniauth_authorize_path(:facebook)
Run Code Online (Sandbox Code Playgroud)
它在developers.facebook.com的app config中定义.
如果我通过www.example.com访问该网站,一切正常,我可以登录.
如果我在没有"www"子域(即example.com)的情况下访问它,我会得到以下响应:
{
"error": {
"message": "Invalid redirect_uri: Given URL is not allowed by the Application configuration.",
"type": "OAuthException"
}
}
Run Code Online (Sandbox Code Playgroud)
有谁知道我怎么解决这个问题?
| 归档时间: |
|
| 查看次数: |
1017 次 |
| 最近记录: |