Skip to content

Instantly share code, notes, and snippets.

@jvorcak
Last active December 14, 2015 22:08
Show Gist options
  • Save jvorcak/5155684 to your computer and use it in GitHub Desktop.
Save jvorcak/5155684 to your computer and use it in GitHub Desktop.
Getting oAuth token in Django's UserSocialAuth
from social_auth.models import UserSocialAuth
UserSocialAuth.objects.filter(user=user_object, provider='facebook').all()
# then just call tokens on each of the objects
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment