Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 django 中使用 python social auth。使用 facebook 时发生错误。
http://solarbiz.in/complete/facebook/?redirect_state=FV9GiLjcd8BQHN3fhuneiowJlnS6PQO8&error_code=100&error_message=Invalid+Scope%3A+profile&state=FV9GiLjcd8BQHN3fhuneiowJlnS6PQO8
请有任何建议,我是 django 的初学者。我在这个错误上尝试了几个小时。
从提供的链接中,错误消息是:
error_message u'Invalid Scope: profile'
确保您使用的是最新的 SDK 并将范围从 更改profile为public_profile
profile
public_profile
看看你的settings.py,上面写着:
settings.py
SOCIAL_AUTH_FACEBOOK_SCOPE = ['email', 'profile']
如果您已经更新了文件,我想您应该重新启动您的网络服务器。