code: def fetch_friends(self, user):
          
  
          # Fetch the token key and secret
          if USING_ALLAUTH:
              social_app = SocialApp.objects.get_current('twitter')
              consumer_key = social_app.key
              consumer_secret = social_app.secret
  
              oauth_token = SocialToken.objects.get(account=user, app=social_app).token
              oauth_token_secret = SocialToken.objects.get(account=user, app=social_app).token_secret
          else:
              t = TwitterBackend()
              tokens = t.tokens(user)
              oauth_token_secret = tokens['oauth_token_secret']
              oauth_token = tokens['oauth_token']
  
              # Consumer key and secret from settings
              consumer_key = settings.TWITTER_CONSUMER_KEY
              consumer_secret = settings.TWITTER_CONSUMER_SECRET
  
          # now fetch the twitter friends using `python-twitter`
          api = twitter.Api(
              consumer_key=consumer_key,
              consumer_secret=consumer_secret,
              access_token_key=oauth_token,
              access_token_secret=oauth_token_secret
          )
          return api.GetFriends()
docs: fetches the friends from twitter using the
          information on django-social-auth models
          user is an instance of UserSocialAuth
  
          Returns:
              collection of friend objects fetched from facebook