added new function for getting list of friends the user can invite