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

License

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

Project details


Download files

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

Source Distribution

fboauth2-0.1.1.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fboauth2-0.1.1-py2.7.egg (4.0 kB view details)

Uploaded Egg

File details

Details for the file fboauth2-0.1.1.tar.gz.

File metadata

  • Download URL: fboauth2-0.1.1.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for fboauth2-0.1.1.tar.gz
Algorithm Hash digest
SHA256 433324bb69e8348492426dca4cb3e76ae3bbc1f48660e1d25ecca7aefcb6fef8
MD5 da56de050d670c1855a10db4e49bcaac
BLAKE2b-256 1d3ed3563ab5de2ee003501ff151dcfe5b3e0b40e0f34514a3ed783ac82e3fef

See more details on using hashes here.

File details

Details for the file fboauth2-0.1.1-py2.7.egg.

File metadata

  • Download URL: fboauth2-0.1.1-py2.7.egg
  • Upload date:
  • Size: 4.0 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for fboauth2-0.1.1-py2.7.egg
Algorithm Hash digest
SHA256 5354a4dbae9e54166bf55c38527cd6343265529cb5b626bfa3340682b055cda2
MD5 dfb9134a25728959855bea341375a3a9
BLAKE2b-256 d0c07c4ee275bb50f7e1d955251d74e641c0f04071ed37ee78721ffd9946ba2c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page