[英]django-socialregistration access_token error
I've been currently trying to write a simple Django app with social platforms integration. 我目前一直在尝试编写一个具有社交平台集成功能的简单Django应用。 I decided to use a plugin django-socialregistration to connect to facebook accounts. 我决定使用插件django-socialregistration连接到Facebook帐户。 I followed the installation guide on http://django-socialregistration.readthedocs.org/en/latest/ . 我遵循了http://django-socialregistration.readthedocs.org/en/latest/上的安装指南。
Application shows the button, after clicking it redirects to facebook login page, shows the request dialog and finally bails with the following error: 应用程序显示该按钮,单击该按钮后将重定向到facebook登录页面,显示请求对话框,最后失败,并显示以下错误:
KeyError at /social/facebook/callback/
'access_token'
Request Method: GET
Request URL: http://somehost:8000/social/facebook/callback/?code=
[here comes long code]
Django Version: 1.3.1
Exception Type: KeyError
Exception Value:
'access_token'
Exception Location: /usr/lib/python2.7/site-packages/
django_socialregistration-0.5-py2.7.egg/socialregistration/clients/oauth.py in get_access_token, line 273
sorry for posting error-message-like question, but I have absolutely no idea how to solve it. 很抱歉张贴类似错误消息的问题,但我绝对不知道如何解决。
thanks a lot, 非常感谢,
Tomek 托梅克
Well I'm biased since I'm the author, but did you try: https://github.com/tschellenbach/Django-facebook We use it quite a massive production environment, works very well. 好吧,因为我是作者,所以我有偏见,但是您是否尝试过: https : //github.com/tschellenbach/Django-facebook我们在相当大的生产环境中使用它,效果很好。
Only an option if you only need facebook. 如果您只需要facebook,这是一个选择。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.