社交网络登录失败:不包含此URL的域

问题描述 投票:0回答:1

我已经阅读了有关该主题的每篇SO帖子,仍然没有运气。

Facebook登录按钮一直将用户定向到Facebook,让他们输入凭据并按Submit,但随后重定向回我的域名,但出现错误。

我已经编辑了Allauth模板以显示

Code: {{ auth_error.code }}, Error: {{ auth_error.exception }}

返回]

Code: unknown 

Error: Error retrieving access token: b'{"error":{"message":"Can\'t load URL: The domain of this URL isn\'t included in the app\'s domains. To be able to load this URL, add all domains and sub-domains of your app to the App Domains field in your app settings.","type":"OAuthException","code":191,"fbtrace_id":"xxxxxxxx"}}'

我已将我的域名添加到Valid OAuth Redirect URIs

https://www.myapp.com/accounts/facebook/login/callback/

等,但没有任何变化。

我确实注意到抛出错误时的URL是

https://www.myapp.com/accounts/facebook/login/callback/?code=dksjfhskdjhfskdjfskdjhfksjdhfkdsjfhksdjfh(really long code)&state=pEekQctKQlND#_=_

所以URI ?code=XXX似乎附加在URI上,不确定是否有帮助。

我已经阅读了有关该主题的每篇SO帖子,仍然没有运气。 Facebook登录按钮一直将用户定向到Facebook,让他们输入其凭据并按Submit,... ...>

django oauth facebook-login django-allauth
1个回答
0
投票

我也遇到了这个问题,有人可以帮忙吗?谢谢!

© www.soinside.com 2019 - 2024. All rights reserved.