我已经阅读了有关该主题的每篇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,... ...>
我也遇到了这个问题,有人可以帮忙吗?谢谢!