How to Register Users - TogetherGames/Public-Unity-CSharp GitHub Wiki
Register Users
The Together system currently supports two ways to register a User.
Custom User Registration
When a User registers using the Custom User Registration system, the User must supply their email, password, and Name. If a Together User already exists with the the same email and password, then the existing Together User is returned. If the password is different, an error is returned. If no User has been registered with the email yet, a Custom User Registration is attached to your current User profile.
The following is the single network method to call to register a User via the Custom User Registration system.
public void RegisterCustom(string email, string password, string name, OnCompleteHandler callbackFunc)
Facebook User Registration
After the User logs into facebook the first time during their play session, an attempt is made to register the User with the Facebook User Registration system. If another Together User already exists that had been registered with the same Facebook account, then that User is returned. The fields passed into the Together.Instance.RegisterFacebook() network method are retrieved from the User's Facebook account.
The following is the single network method to call to register a User via the Facebook User Registration system.
public void RegisterFacebook(string facebookID, string fbname, string firstName, string lastName, string link, string username, string gender, string locale, OnCompleteHandler callbackFunc)