Generate the list of friends using an asynchronous task