python-social-auth 和 facebook 登录:什么是白名单重定向 url 要包含在 fb 配置中?

python-social-auth and facebook login: what is the whitelist redirect url to include in fb configuration?

我遇到了这个 facebook 登录错误:

URL Blocked This redirect failed because the redirect URI is not whitelisted in the app’s Client OAuth Settings. Make sure Client and Web OAuth Login are on and add all your app domains as Valid OAuth Redirect URIs.

Facebook 登录需要回调白名单url。

django-social-auth 或 python-social-auth 的回调 url 是什么?

在您的网站中包含一个 url,它是此相对 url 的绝对 url 版本: /complete/facebook/

如何找到这个? 使用 Chrome 浏览器开发工具,启用保留日志,尝试登录您的应用程序。

此问题/答案适用于 django-social-auth,但也可能适用于 python-social-auth。