使用django-social-auth登录后即可获取Facebook数据 [英] Fetching facebook data once logged in using django-social-auth

查看:124
本文介绍了使用django-social-auth登录后即可获取Facebook数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们设置了一个使用 django-social-auth 扩展名的应用程序,以使用Facebook验证用户。认证工作正常,但是我们不清楚如何从Facebook(朋友列表,喜欢等)获取有用的信息
似乎 django-facebook 处理这些功能的一部分,但也处理授权方面。是否有一个应用程序可以整齐地坐在 django-social-auth 之上,并提供使用Facebook数据的框架?使用 django-social-auth django-facebook 在一起似乎是kludgy。

We've set up an application that uses the django-social-auth extension to authenticate users with Facebook. The authentication works fine, but we are not clear on how to go about fetching useful information from Facebook (friends lists, likes, etc.) It appears that django-facebook handles some of this functionality, but also handles the authorization aspects. Is there an application that would sit neatly on top of django-social-auth and provide a framework for using facebook data? Using django-social-auth and django-facebook together seems kludgy.

推荐答案

您可能需要查看 facepy 。您可以使用django-social-auth保存在您的数据库中的Facebook oAuth访问令牌,并使得允许为给定用户创建的API API调用您的应用程序。

You might want to look into facepy. You could use the Facebook oAuth access token that django-social-auth saves in your database and make whichever Graph API calls your application is permitted to make for the given user.

这篇关于使用django-social-auth登录后即可获取Facebook数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆