Skip to content
Bare minimum Facebook OAuth2 client
Python
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
.gitignore
README.rst
fboauth2.py
setup.py

README.rst

fboauth2

http://img.shields.io/pypi/v/fboauth2.png

Bare minimum Facebook OAuth2 client

Usage

from fboauth2 import FBClient
fbclient = FBClient(CLIENT_ID, CLIENT_SECRET, scope='publish_stream',
                    redirect_uri='http://example.com/callback')
# Point users to auth url
redirect(fbclient.get_auth_url())
# Pass code to get access token
code = params['code']
access_token = fbclient.get_access_token(code)
# Make graph requests
me = fbclient.graph_request('me')
print me['name']

License

http://marksteve.mit-license.org/

Something went wrong with that request. Please try again.