views:

874

answers:

4

Hello, I am curious if there is any article/ library / anything useful that is built for the newly announced Facebook Graph API. I am planning to use it for a Python/Django project.

+3  A: 

since it looks to me as something simple as calling an URL and deserializing the result (JSON), this should be only a few lines:

from urllib2 import urlopen
from simplejson import loads
content = loads(urlopen('http://graph.facebook.com/2439131959').read())

content is now a dictionary with all the info:

{'category': u'Just for fun',
 'description': "Graffiti lets you draw on your friends' profiles.",
 'id': '2439131959',
 'name': 'Graffiti'}
mawimawi
A: 

You're in good company.

This is the only thing I've found so far http://github.com/digvan/django_facebook_oauth

+1  A: 

There is also this: http://github.com/facebook/python-sdk

dar
A: 

It seems that there's more mature fork of the project to which dar linked here:

http://github.com/dickeytk/django_facebook_oauth

Documentation is missing few things but it shouldn't that hard to implement.

jorde