fix #10, invite friend API