Authenticating on turnbased (Facebook)

Options
Hi there, I'm attempting to connect through Facebook here. I'm using unity and the LoadBalancincClient class. This is what I'm doing right now:

First I connect to Facebook with their unity plugin to get the user id and the token, then I do this:
AuthenticationValues auth = new AuthenticationValues ();
auth.AuthType = CustomAuthenticationType.Facebook;
auth.SetAuthParameters (FB.UserId, FB.AccessToken);

client.Connect (	"app-eu.exitgamescloud.com:5055",           // server address
		        "XXXXXXXXXXXXXXXXXXXXXXXXXXXX",            // My appId
		        "1.0",                                                       // game version
			 null,                                                        // player name
			 auth                                                       // authValues 
		       );

Now the problem is that I get the following error:

error CS1503: Argument `#5' cannot convert `AuthenticationValues' expression to type `ExitGames.Client.Photon.LoadBalancing.AuthenticationValues'

Now I'm sure this is some really stupid error that I can't see. I'm using AuthenticationValues so I don't understand the error.


Thank you for your help!

Comments

  • [Deleted User]
    Options
    Hi, please check that AuthenticationValues are not defined by you/3rd-party lib. Otherwise, you can explicitly use com.exitgames.client.photon.AuthenticationValues.