【发布时间】:2012-07-14 03:58:10
【问题描述】:
这可能是一个愚蠢的问题,但我已经为这个问题挠头太久了。
我正在尝试使用 django 中的 Facepy/social-auth 从 facebook GraphAPI 请求照片信息。
我的视图有以下代码,但是如何将生成的 json 转换为 python 对象?
instance = UserSocialAuth.objects.filter(user=request.user).filter(provider='facebook')
graph = GraphAPI(instance[0].extra_data['access_token'])
p=graph.get('me/photos')
Facepy 看起来很不错,但是文档充其量是很差,有没有更好的 python facebook sdk 与 social-auth 配合得很好?
感谢所有建议。
【问题讨论】:
标签: django facebook-graph-api python-2.7