Add function to get friend ids