Get array of user ID’s that are friends with user $FriendUserIds = friends_get_friend_user_ids( bp_displayed_user_id());