set friendnames using api function