First Problem:
setTagFriend API return error 500. I made request with client API in actionscrupt (as3)
here is how i call
var req:SetFriendTagsRequest = new SetFriendTagsRequest(); req.Tags = new Vector.<String>(); req.Tags.push(""); req.FriendPlayFabId = "other playfab id"; PlayFabClientAPI.SetFriendTags(req, onSetTagSuccess, onError);
It return errors 500 Internal server error.
Second Problem,
Bot updated of PlayerTag. I send a blank array ([]) to "TagsRequest" and it doesn't change. as suggested answer on Two way friends request as it says "remove the tags from both players" does it mean remove the "Tags" property right? i want the result of "GetFriendList"
Here how i send the request:
// From AS3 var req:SetFriendTagsRequest = new SetFriendTagsRequest(); req.Tags = new Vector.<String>(); req.FriendPlayFabId = "other playfab id"; PlayFabClientAPI.SetFriendTags(req, onSetTagSuccess, onError); ---------------------------------------------------------------------------- // From Cloud Script.js server.SetFriendTags({ "PlayFabId": receiverId, "FriendPlayFabId": currentPlayerId, "Tags": [] });
Expected Result:
{ "code": 200, "status": "OK", "data": { "Friends": [ { "FriendPlayFabId": "playfabId", "TitleDisplayName": "Title", "FacebookInfo": {} }, { "FriendPlayFabId": "playfabId", "TitleDisplayName": "Title", "FacebookInfo": {} } ] }, "CallBackTimeMS": 1031 }
Instead of:
{ "code": 200, "status": "OK", "data": { "Friends": [ { "FriendPlayFabId": "playfabId", "TitleDisplayName": "Title", "Tags":[] // or "Tags":[" "] "FacebookInfo": {} }, { "FriendPlayFabId": "playfabId", "TitleDisplayName": "Title", "FacebookInfo": {} } ] }, "CallBackTimeMS": 1031 }
Thanks.