Skip to main content

A python package that helps getting the user info from social apps

Project description


Social User Info

A python package that helps getting the user info from social apps


Required Python Version >= 3
pip install social-user-info

Supported Social Media

  • Google
  • Facebook
  • Github

How it works?

The package has a method APIService.get_user_info(access_token, auth_source). This method accepts the access_token and auth_source and returns the user info corresponding to the given access token


Get your google access token:

  • Navigate to:
  • In Step 1, select Google OAuth2 API v2 and add and Click on Authorize APIs
  • Login/Select the account you want the access token of
  • In Step 2, Click on Exchange Authorization Code for Tokens
  • Get the access_token from the returned JSON

Get you facebook access token

Get you github access token

  • Login to your github account
  • Navigate to settings
  • Navigate to developer settings at the bottom left
  • Navigate to personal access token
  • Generate a new Token
  • Get the access_token by clicking on Generate Token

Obtain user info

from social_user_info.social_user_info import APIService

APIService.get_user_info(access_token={access_token_from_above_step}, auth_source='google')
APIService.get_user_info(access_token={access_token_obtained_from_facebook}, auth_source='facebook')
APIService.get_user_info(access_token={access_token_obtained_from_github}, auth_source='github')

Project details

Download files

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

Files for social-user-info, version 1.0.2
Filename, size File type Python version Upload date Hashes
Filename, size social_user_info-1.0.2-py3-none-any.whl (7.7 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size social-user-info-1.0.2.tar.gz (5.8 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page