refactored method to fetch all friends
now keeps polling the server until it gets results.