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
Metadata
Release files for fboauth2 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| fboauth2-0.1.1.tar.gz | 2.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| fboauth2-0.1.1-py2.7.egg | Legacy Egg format | - | - | Details |
Total release size: 6.3 kB
Release files / fboauth2-0.1.1.tar.gz
| Download URL | fboauth2-0.1.1.tar.gz |
|---|---|
| Size | 2.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
433324bb69e8348492426dca4cb3e76ae3bbc1f48660e1d25ecca7aefcb6fef8
|
|
BLAKE2b-256 checksum How to use checksums |
1d3ed3563ab5de2ee003501ff151dcfe5b3e0b40e0f34514a3ed783ac82e3fef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / fboauth2-0.1.1-py2.7.egg
| Download URL | fboauth2-0.1.1-py2.7.egg |
|---|---|
| Size | 4.0 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
5354a4dbae9e54166bf55c38527cd6343265529cb5b626bfa3340682b055cda2
|
|
BLAKE2b-256 checksum How to use checksums |
d0c07c4ee275bb50f7e1d955251d74e641c0f04071ed37ee78721ffd9946ba2c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |