Skip to content

Instantly share code, notes, and snippets.

@pyokagan
Created June 7, 2012 19:32
Show Gist options
  • Select an option

  • Save pyokagan/2891064 to your computer and use it in GitHub Desktop.

Select an option

Save pyokagan/2891064 to your computer and use it in GitHub Desktop.
tl;dr of usage of pykoauth2
#Add client credentials
pykoauth2 addclient facebook.com CLIENT_ID CLIENT_SECRET
#Make authorization request (starts web server at http://localhost:8080 and prints URL. Point your web browser to this URL)
pykoauth2 authcode facebook.com
#Get access token
pykoauth2 token --server_fqdn facebook.com
#Make authenticated request
pykoauth2curl --data-urlencode 'message=Hello world from pykoauth2!' \
'https://graph.facebook.com/me/feed'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment