def METHOD_NAME(backend, user, response, *args, **kwargs):
    print('Backend:', backend)
    print('backend name:', backend.name)
    print('user:', user)
    #print 'User profile:', user.get_profile()
    try:
        print('user profile:', user.profile)
    except:
        pass
    print('Existing users:')
    from django.contrib.auth.models import User
    U = User.objects.all()
    for u in U:
        print('  ', u.username, u.email)
    print('Login response:') #, response
    keys = response.keys()
    keys.sort()
    for k in keys:
        print('  ', k, '=', response[k])
    print('args:', args)
    print('kwargs:', kwargs.keys())
    for k in ['username', 'is_new', 'uid', 'new_association', 'social', 'details']:
        if k in kwargs:
            print(k, ':', kwargs[k])
    # if backend.name == 'facebook':
    #     profile = user.get_profile()
    #     if profile is None:
    #         profile = Profile(user_id=user.id)
    #     profile.gender = response.get('gender')
    #     profile.link = response.get('link')
    #     profile.timezone = response.get('timezone')
    #     profile.save()