https://github.com/marksteve/fboauth2
Bare minimum Facebook OAuth2 client
https://github.com/marksteve/fboauth2
Last synced: about 1 year ago
JSON representation
Bare minimum Facebook OAuth2 client
- Host: GitHub
- URL: https://github.com/marksteve/fboauth2
- Owner: marksteve
- Created: 2012-03-21T07:35:44.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2014-03-07T15:53:14.000Z (over 12 years ago)
- Last Synced: 2025-03-27T14:21:13.886Z (about 1 year ago)
- Language: Python
- Size: 139 KB
- Stars: 3
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
========
fboauth2
========
.. image:: 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/