NEW YORK (Reuters) - News Corp's MySpace said on Thursday it has agreed to buy music recommendation service iLike, as the once-hot social networking site tries to reinvent itself as an entertainment portal.