'Connects to the facebook api and gets the users friends'

def get_friends(self, limit=5000):

    friends = getattr(self, '_friends', None)
    if (friends is None):
        friends_response = self.open_facebook.get('me/friends', limit=limit, fields='gender,name')
        friends = []
        for response_dict in friends_response.get('data'):
            response_dict['id'] = response_dict['id']
            friends.append(response_dict)
    logger.info('found    %s    friends', len(friends))
    return friends
