I am new to PlayFab community, just started exploring with Unity.
i was folling up your unity tutorial for login and it seems i am doing something wrong, i am unable to log-in.
here is my code piece -
using UnityEngine;
using System.Collections;
using PlayFab;
using PlayFab.ClientModels;
public class Test : MonoBehaviour
{
public string PlayFabId;
void Start ()
{
Login ("user");
}
void Login (string titleId)
{
LoginWithCustomIDRequest request = new LoginWithCustomIDRequest () {
TitleId = titleId,
CreateAccount = true,
CustomId = SystemInfo.deviceUniqueIdentifier
};
PlayFabClientAPI.LoginWithCustomID (request, (result) => {
PlayFabId = result.PlayFabId;
Debug.Log ("Got PlayFabID: " + PlayFabId);
if (result.NewlyCreated) {
Debug.Log ("(new account)");
} else {
Debug.Log ("(existing account)");
}
},
(error) => {
Debug.Log ("Error logging in player with custom ID:");
Debug.Log (error.ErrorMessage);
});
}
}
I am getting- Invalid input parameters,
BTW - i have changed TitleId in PlayFabSettings.cs
do i need to put my secret key and api key somewhere ?
please help.
thanks