• ru
  • Language: en
  • Documentation version: 0.1

Instagram

Instagram uses OAuth v2 for Authentication.

  • Register a new application at the Instagram API, and

  • Add instagram backend to AUTHENTICATION_SETTINGS:

    AUTHENTICATION_SETTINGS = (
      ...
      'social_core.backends.instagram.InstagramOAuth2',
      ...
    )
    
  • fill Client Id and Client Secret values in the settings:

    SOCIAL_AUTH_INSTAGRAM_KEY = ''
    SOCIAL_AUTH_INSTAGRAM_SECRET = ''
    
  • extra scopes can be defined by using:

    SOCIAL_AUTH_INSTAGRAM_AUTH_EXTRA_ARGUMENTS = {'scope': 'likes comments relationships'}