public function getFriends()
    {
        try {
            $data = $this->get('/me/friends');
        } catch (Exception $e) {
            throw new \LogicException("Can't get connections from facebook");
        }

        if ($data->error) {
            throw new \LogicException("Can't get connections from facebook");
        }

        $data = AnConfig::unbox($data);
        $data = array_map(function ($user) {return $user['id'];}, $data['data']);
        $data[] = '-1';

        $query = $this->getService('repos:people.person')
        ->getQuery(true)
        ->where(array(
            'sessions.profileId' => $data,
            'sessions.api' => 'facebook'
        ));

        return $query->toEntitySet();
    }