public void OnFacebookAuthButtonClicked()
    {
        Debug.Log("In Facebook auth button clicked");
        AzureMobileServices.Connect("https://unitypluginstest.azure-mobile.net/", "cbdWXFvfYQsNLApFEnoRJnFoZzPWPS37");
        AzureMobileServices.AuthenticateWithServiceProvider(MobileServiceAuthenticationProvider.Facebook, (response) =>
        {
            if(response.Status == CallbackStatus.Failure)
            {
                Debug.LogError("AuthenticateWithServiceProvider failed.");
                Debug.LogError(response.Exception.ToString());
                return;
            }

            FacebookAuthText.text = "authenticating";
            serviceUser = response.Result;
            Debug.Log("Authentication Suceeded");
            FacebookAuthText.text = "authentication succeeded!";
        });
    }
Example #2
0
    public void OnFacebookAuthButtonClicked()
    {
        Debug.Log("In Facebook auth button clicked");
        AzureMobileServices.Connect("https://unitypluginstest.azure-mobile.net/", "cbdWXFvfYQsNLApFEnoRJnFoZzPWPS37");
        AzureMobileServices.AuthenticateWithServiceProvider(MobileServiceAuthenticationProvider.Facebook, (response) =>
        {
            if (response.Status == CallbackStatus.Failure)
            {
                Debug.LogError("AuthenticateWithServiceProvider failed.");
                Debug.LogError(response.Exception.ToString());
                return;
            }

            FacebookAuthText.text = "authenticating";
            serviceUser           = response.Result;
            Debug.Log("Authentication Suceeded");
            FacebookAuthText.text = "authentication succeeded!";
        });
    }
    public void OnFacebookAuthButtonClicked()
    {
        Debug.Log("In Facebook auth button clicked");
        AzureMobileServices.Connect("https://build16gameazurelab2.azurewebsites.net");
        AzureMobileServices.AuthenticateWithServiceProvider(MobileServiceAuthenticationProvider.Facebook, (response) =>
        {
            if (response.Status == CallbackStatus.Failure)
            {
                Debug.LogError("AuthenticateWithServiceProvider failed.");
                Debug.LogError(response.Exception.ToString());
                return;
            }

            FacebookAuthText.text = "authenticating";
            serviceUser           = response.Result;
            Debug.Log("Authentication Suceeded");
            FacebookAuthText.text = "authentication succeeded!";
        });
    }