Skip to main content

Bare minimum Facebook OAuth2 client

Project description

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']

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for fboauth2, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size fboauth2-0.1.1-py2.7.egg (4.0 kB) File type Egg Python version 2.7 Upload date Hashes View
Filename, size fboauth2-0.1.1.tar.gz (2.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page