Better integration with Facebook for Django
Posted on November 18th, 2010 in Programming | 7 Comments »
I’ve really been enjoying working with Django for the last few months, it’s an incredibly powerful and elegant framework and I sorely wish there was an equivalent in PHP.
This said, I was sadly unimpressed with the social landscape support. Facebook’s own Python SDK has a slew of bugs and is not actively maintained, I recommend people use David Ziegler’s fork.
For integration with Django, there was Django-facebook which had good intentions but doesn’t quite cut the mustard, Pyfacebook which is no longer actively maintained and does not work with the new Graph API, and Social registration which was the best of the bunch, but still offered poor integration with the django authentication system.
To this end, I have released django-facebook which offers total and seamless integration with Facebook for your social apps.
It has a bunch of nifty tools including template tags, a nice middleware, an authentication backend and some actual documentation!
Spread the word, and watch this space.
7 Responses
[...] I found Aidan Lister‘s project just in time. He created django-facebook for the exact same reasons I did. And after adding a couple quick features that I needed (pre-populate user data and first [...]
Been searching for a good api for facebook on python since a long time, thanks a lot, Aidan!
I would really like to integrate my django app with facebook for such things like the “Like” link, or more importantly, facebook login.
Almost ALL of the info I find on Google is inaccurate, or outdated.
So, if I have problems with information in the site link named “django-facebook” can I talk to you about it?
John
For instance, would I put the “django-facebook” folder into my “www/project” folder? Would that be a good place to put it?
John, no, these comments are not a support forum. You should install django-facebook like you would install any other third party library. If you need more help than that, you should ask in #django on irc.freenode.net using your IRC client.
Hey Aidan,
Django Facebook version 2.0 has been released since this post. It’s main focus is allowing you to register members using the Facebook open graph API. Also works well for facebook application development. The new version is a lot easier to setup than before and has been tested on 100.000+ registers. (quite a lot of things can go wrong with unicode, strange fb data etc.) Give it a try if you like
Hi Aidan,
Very nice! I’ve been spending the day evaluating Facebook libraries for Django, and this one looks like the best so far.
Can you add licensing information? I can’t seem to find any.
– James