I just wanted to use Display name or username to do add friend using cloudscript.
// Code That i want some kind of maybe-- handlers.SendFriendRequest = function(args, context){ server.AddFriend({ DisplayName: DisplayName, FriendDisplayName: args.friendDisplayName}); server.SetFriendTags({ DisplayName: DisplayName, FriendDisplayName: args.friendDisplayName, Tags: ["requestee"]}); server.AddFriend({ DisplayName: args.friendDisplayName, FriendPlayFabId: currentPlayerId}); server.SetFriendTags({ DisplayName: args.FriendPlayFabId, FriendDisplayName: DisplayName, Tags: ["requester"]}); server.SendPushNotification({ Recipient: args.friendDisplayName, Message: "Nice to meet you"});}