GitXplorerGitXplorer
j

facebook

public
22 stars
6 forks
0 issues

Commits

List of commits on branch master.
Unverified
98fef237019bab73a01592011f5cef1bba0d9c4e

Implement User#accounts

jjgorset committed 13 years ago
Unverified
781e6bf34089ad3d7c0d34b5a5e7e47d98f6fd5f

Prune whitespace

jjgorset committed 13 years ago
Unverified
64f53217fce432092a81ff867268ba73d6df7d9c

Update README

jjgorset committed 13 years ago
Unverified
ae7fd687c86946dc233a5e5c8f68d884f4bd2740

Implement Structure#__repr__

jjgorset committed 13 years ago
Unverified
1357425f8b53f37e6121629bbe374108b7f22f59

Implement User#work

jjgorset committed 13 years ago
Unverified
c132a2b690933baeac5af4d164bbb4b55776e5a7

Implement User#website

jjgorset committed 13 years ago

README

The README file for this repository.

Facebook

About

Facebook makes it even easier to interact with Facebook's Graph API.

Usage

::

import facebook 

# Query Facebook anonymously
user = facebook.User('johannes.gorset')

user.facebook_id    # => 586052336
user.first_name     # => 'Johannes'
user.last_name      # => 'Gorset'
user.name           # => 'Johannes Gorset'
user.link           # => 'http://facebook.com/johannesgorset'

# Query Facebook on behalf of a user
user = facebook.User('johannes.gorset', oauth_token = oauth_token)

user.permissions        # => ['user_location', 'user_relationships']
user.friends            # => [<User #586052345>, <User #556022345>, <User #586252349>, ...]
user.friends[0].name    # => "John Doe"
user.friends[0].link    # => "http://facebook.com/john.doe"

Disclaimer

I'm not nearly done yet, and I probably never will be. Check out facepy <https://github.com/jgorset/facepy>_, though!

Installation

::

$ pip install facebook

I love you

Johannes Gorset made this. You should tweet me <http://twitter.com/jgorset>_ if you can't get it to work. In fact, you should tweet me anyway.