Facebook App配置 -
基本:
应用领域 - domainname.com
网站网址 - http://domainname.com/
高级: 客户端OAuth登录 - 是
Web OAuth登录 - 是
嵌入式浏览器OAuth登录 - 是
有效的OAuth重定向URI - http://domainname.com/path_to_page/
[与LOGIN_REDIRECT_URL相同]
settings.py
:
SITE ID = 7
LOGIN_REDIRECT_URL = 'https://domainname/path_to_page/'
SOCIALACCOUNT_QUERY_EMAIL = True
SOCIALACCOUNT_PROVIDERS = {
'facebook': {
'SCOPE': ['email'],
'AUTH_PARAMS': {'auth_type': 'reauthenticate'},
'METHOD': 'oauth2',
'VERIFIED_EMAIL': False
}
}
数据库:
社交应用程序已创建
ID,密钥添加
网站域名 - domainname.com
我仍然收到以下错误:
Given URL is not permitted by the Application configuration: One or more of the given URLs is not permitted by the App's settings. It must match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App's domains.
知道为什么会这样吗?
提前致谢!