def get_user_details(self, response):
    'Return user details from Facebook account'
    email = response.get('email')
    return {'email': email, 'username': email.split('@')[0]}
Return user details from Facebook account
def get_user_details(self, response):
    
    email = response.get('email')
    return {'email': email, 'username': email.split('@')[0]}