A.in18dec
started a topic on Fri, 05 June 2015 at 1:52 AM
Hi playfab,
first of all, thanks for making this great services.
I have a problem connecting to photon with playfab.
I have downloaded PUN from the asset store, setup it with the AppId I got from playfab dashboard
here's my code to connect to photon after successfully connected to playfab
void OnLoginResult(LoginResult result)
{
Debug.Log ("Yay, logged in in session token: " + result.SessionTicket);
PhotonNetwork.AuthValues = new AuthenticationValues();
PhotonNetwork.AuthValues.AuthType = CustomAuthenticationType.Custom;
PhotonNetwork.AuthValues.SetAuthParameters(result.PlayFabId,result.SessionTicket);
PhotonNetwork.ConnectToBestCloudServer ("1.0");
}
and here is the error I got,
Custom Authentication failed (either due to user-input or configuration or AuthParameter string format). Calling: OnCustomAuthenticationFailed()
UnityEngine.Debug:LogError(Object)
NetworkingPeer:OnOperationResponse(OperationResponse) (at Assets/Photon Unity Networking/Plugins/PhotonNetwork/NetworkingPeer.cs:1145)
ExitGames.Client.Photon.PeerBase:DeserializeMessageAndCallback(Byte[])
ExitGames.Client.Photon.EnetPeer:DispatchIncomingCommands()
ExitGames.Client.Photon.PhotonPeer:DispatchIncomingCommands()
PhotonHandler:Update() (at Assets/Photon Unity Networking/Plugins/PhotonNetwork/PhotonHandler.cs:83)
Thanks a lot,
[M. Wahyu Ashari]