My game using playfab and FBGraph link to get player avatar, i was make a mistake when update user avatar that I forget about update value height=500 at end of my fbgraph link
Can i using cloudscript to update value height=500 in playerprofilepicURL
My game using playfab and FBGraph link to get player avatar, i was make a mistake when update user avatar that I forget about update value height=500 at end of my fbgraph link
Can i using cloudscript to update value height=500 in playerprofilepicURL
I currently using this code but kinda not work, please help
handlers.makeAPICall = function (args, context) { var proFileViewContrain = new PlayerProfileViewConstraints(); proFileViewContrain.ShowAvatarUrl = true; var request = { PlayFabId: currentPlayerId, ProfileConstraints : proFileViewContrain }; var playerStatResult = server.GetPlayerProfile(request); var jsonParse = JSON.parse(JSON.parse(playerStatResult).PlayerProfile); var requestupdate = { PlayFabId: currentPlayerId, ImgURL : jsonParse.ImgURL.concat("&height=500") }; var updateProfile = server.UpdatePlayerProfile(requestupdate); };
There’s no UpdatePlayerProfile API provided by PlayFab, please check the API reference. We can update PlayerProfile avatar URL via UpdateAvatarUrl API.
3 People are following this question.