Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Python API to the Facebook Graph
Python
tree: f54a5b9322

bit more on the readme

latest commit f54a5b9322
Andy McKay authored
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.