facepy /

Filename Size Date modified Message
facepy
17 B
472 B
1.1 KB
87 B
1.1 KB
333 B

Facepy

About

Facepy is an API client for Facebook's Graph API that doesn't suck.

Usage

from facepy import GraphAPI

# Initialize the Graph API with a valid access token (optional,
# but will allow you to do all sorts of fun stuff).
graph = GraphAPI(oauth_access_token)

# Get an object from the Graph API.
graph.get('johannes.gorset')

# Get a list of objects from the Graph API.
graph.get('johannes.gorset/friends')

# Post an item to the Graph API.
graph.post(
    path = 'johannes.gorset/feed',
    message = 'Why, hello.'
)

# Delete an item from the Graph API.
graph.delete('481213268764')

# Search the Graph API for posts describing the meaning of life.
graph.search(
    term = 'the meaning of life',
    type = 'post'
)

Documentation

See Facebook's Graph API documentation.

Installation

$ pip install git+git://github.com/jgorset/facepy

Dependencies

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.