TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: What do you use for Django integration with Facebook

8 点作者 sid6376超过 13 年前

7 条评论

makuro超过 13 年前
Django-facebook is the only one I know of that will support the Graph API right now: <a href="https://github.com/tschellenbach/Django-facebook" rel="nofollow">https://github.com/tschellenbach/Django-facebook</a><p>For just the fundaments:<p>Facebook's own SDK: <a href="https://github.com/facebook/python-sdk/blob/master/examples/oauth/facebookoauth.py" rel="nofollow">https://github.com/facebook/python-sdk/blob/master/examples/...</a><p>or<p>Requests: <a href="http://docs.python-requests.org/en/latest/index.html" rel="nofollow">http://docs.python-requests.org/en/latest/index.html</a><p>If you need more providers, there's also Django SocialAuth, but I'm not sure if it's updated for Facebook's OAuth 2 stuff yet.
评论 #3065628 未加载
dguaraglia超过 13 年前
I started using django-social-auth, but ended up rolling my own Facebook backend using the Facebook Python SDK. It's really simple if all you want to do is fetch some information and create a new user.<p>That said, django-social-auth should be more than enough if all you need is a way for a user to login using Facebook Connect.
VuongN超过 13 年前
I like django-allauth a lot for all the social authentication integration: <a href="https://github.com/pennersr/django-allauth" rel="nofollow">https://github.com/pennersr/django-allauth</a>
emilepetrone超过 13 年前
Social Registration - <a href="https://github.com/flashingpumpkin/django-socialregistration" rel="nofollow">https://github.com/flashingpumpkin/django-socialregistration</a>
ericflo超过 13 年前
I just write a little graph_fetch function, attach it to whatever model will hold the user's facebook_id and token, and that's pretty much it.
aljosamohorovic超过 13 年前
<a href="https://github.com/jgorset/fandjango" rel="nofollow">https://github.com/jgorset/fandjango</a>
kennethlove超过 13 年前
django-social-auth is the best for doing Facebook authentication/account-creation.<p>I don't deal with the Graph API much so I can't comment on that aspect.