When I am sending request it is giving issue. Please let me know any solution or if I am doing something wrong.
When I am sending request it is giving issue. Please let me know any solution or if I am doing something wrong.
Debug.LogError("Name Opponent "+PhotonNetwork.otherPlayers[0].name);
AddFriendRequestrequest=newAddFriendRequest(){
FriendPlayFabId=GameManager.Instance.opponentPlayFabID// PhotonNetwork.otherPlayers[0].name
};
PlayFabClientAPI.AddFriend(request,(result)=>{
Debug.Log("Added friend successfully");
},(error)=>{
Debug.Log("Error adding friend: "+error.Error);
Debug.Log("Error Message: "+error.ErrorMessage);
Debug.Log("Error Message: "+error.HttpCode);
},null);
And reponse
According to the error message, this issue is usually caused by the incorrect FriendPlayFabId. Please make sure the target PlayFab ID is exist in the title. You can print out the GameManager.Instance.opponentPlayFabID and try to search it in the PlayFab Game Manager -> Players.
We notice that you have implemented Photon in your project. If you have any concerns about Photon, you can ask @Hamza Lazaar for help.
2 People are following this question.