Hello.
I'm trying to implement linking accounts to Facebook and LoginWithFacebook.
In my use case a user is always silently logged in, then can link their account to facebook and continue with LoginWithFacebook.
I have followed both your documentaion, written guides and your video guide on youtube and I'm having two issues.
1) When I launch the app on an Android device, whenever I call
FB.LogInWithReadPermissions(newList<string>(){"public_profile","email"},OnLoginHandleFBResult);
facebook opens and shows me an error message : "Given URL is not allowed by the Application configuration.: One or more of the given URLs is not allowed by the App's settings."
I have added facebook login to my app and have in configured exactly like in this guide:
https://api.playfab.com/docs/tutorials/landing-players/facebook-unity
Therefore, I don't know what may be causing it.
2) When I test my functionality in Unity, I can succesfully link my playfab account to facebook and then login with facebook. But, on next run, when I check that the last authentication method was with facebook and then call FB.Init to receive an Auth ticket - it is always null, forcing me to use a debug token everytime. Is that intended behaviour for the Unity Editor or not?
if (AccessToken.CurrentAccessToken != null) //user was already linked { _AuthService.FBAuthTicket = AccessToken.CurrentAccessToken.TokenString; Debug.Log("FB Ticket: " + _AuthService.FBAuthTicket); _AuthService.Authenticate(Authtypes.Facebook); }
I'd appreciate help with this, so far working with Playfab was a blast and we have a game in late development.