Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
45 lines (32 sloc) 1017 Bytes
Python Facebook Graph
----------------------------
A quick implementation of accessing the Facebook graph using Python.
Hopefully more to come.
Example usage:
>>> import fbgraph
>>> fb = fbgraph.FacebookUser('andymckay')
>>> fb.base["name"]
u'Andy McKay'
>>> fb.base.keys()
[u'first_name', u'last_name', u'link', u'id', u'name']
Or...
~/git/python-facebook-graph $ python fbgraph.py andymckay
User: andymckay
base
----------------------------------------
{u'first_name': u'Andy', u'last_name': u'McKay', u'link': u'http://www.facebook.com/andymckay', u'id': u'568756182', u'name': u'Andy McKay'}
home
----------------------------------------
None
feed
----------------------------------------
{u'data': []}
tagged
----------------------------------------
{u'data': []}
posts
----------------------------------------
{u'data': []}
picture
----------------------------------------
????JFIF??;CREATO ...
Something went wrong with that request. Please try again.