GitXplorerGitXplorer
j

facebook

public
22 stars
6 forks
0 issues

Commits

List of commits on branch master.
Unverified
90f035ae1828e4eeb7af428964fedf0ee99ec2ad

Direct to Facebook

jjgorset committed 9 years ago
Unverified
10ccba4be400ff1e3785a1f18e56223143dca950

Be real

jjgorset committed 11 years ago
Unverified
eb25009372e634624bdf12bc03893e5a5f17bb1f

Merge pull request #2 from mcepl/fix_setup

jjgorset committed 11 years ago
Unverified
29318f2342975533a3e4bde5091614c821575935

Fix typo

jjgorset committed 11 years ago
Unverified
eeecf68d2d59bc2233478b01748cbf88bab85722

Add missing requires and PEP8ize.

committed 11 years ago
Unverified
1c3c433bdf6e6679a75bc0dc3e773202e8570431

Implement Employment

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.