Hi guys,
I'm trying to make an account via PlayFab for my users in my Corona SDK app. I'm using this code at the moment:
pfClient = require("plugin.playfab.client") PlayFabClientApi = pfClient.PlayFabClientApi PlayFabClientApi.settings.titleId = "XXXX" local loginRequest = { TitleId = "XXXX", Username = "Bramvbilsen", Email = "opportunitiesgames@gmail.com", Password = "12345", RequireBothUsernameAndEmail = true, DisplayName = "Bram Vanbilsen" } local function successfulLoginListener(result) print("Login Successful: " .. result.PlayFabId) end PlayFabClientApi.RegisterPlayFabUser(loginRequest, successfulLoginListener, function(error) print("Login Failed: " .. error.errorMessage) end)
But I keep getting an error message! "Login Failed: Invalid input parameters"
Does anyone notica something wrong with the code?