@staticmethod
def user_parse(data):
    """Parse information from provider."""
    id_ = data.get('id')
    yield 'id', id_
    yield 'email', data.get('email')
    yield 'first_name', data.get('first_name')
    yield 'last_name', data.get('last_name')
    yield 'username', data.get('name')
    yield 'picture', 'http://graph.facebook.com/{0}/picture?type=large'.format(
        id_)
    yield 'link', data.get('link')
    yield 'locale', data.get('locale')
    yield 'gender', data.get('gender')
    location = data.get('location', {}).get('name')
    if location:
        split_location = location.split(', ')
        yield 'city', split_location[0].strip()
        if len(split_location) > 1:
            yield 'country', split_location[1].strip()
