Skip to content
Python API to the Facebook Graph
Python
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
LICENSE
README
fbgraph.py

README

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.