【问题标题】:django-socialregistration access_token errordjango-socialregistration access_token 错误
【发布时间】:2012-01-25 13:07:33
【问题描述】:

我目前一直在尝试编写一个与社交平台集成的简单 Django 应用程序。我决定使用插件 django-socialregistration 连接到 Facebook 帐户。我按照http://django-socialregistration.readthedocs.org/en/latest/ 上的安装指南进行操作。

应用程序显示按钮,点击后重定向到 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

很抱歉发布类似错误消息的问题,但我完全不知道如何解决。

非常感谢,

托梅克

【问题讨论】:

    标签: django facebook django-facebook


    【解决方案1】:

    好吧,因为我是作者,所以我有偏见,但是您是否尝试过: https://github.com/tschellenbach/Django-facebook 我们在相当庞大的生产环境中使用它,效果很好。

    仅当您只需要 facebook 时才可以选择。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-06-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多