示例#1
0
        public async void OnLoginSuccess()
        {
            if (loginCheck())
            {
                loginCallback.Content = loginCallback.createPreConnectAutoLoginLayout();
                // grab token and go!
                GlobalStatusSingleton.maintainLogin = true;
                string result = await ThirdPartyAuthenticator.requestTokenAsync(ThirdPartyAuthenticator.METHOD_FACEBOOK, AccessToken.CurrentAccessToken.TokenString);

                if (result.Equals("Success"))
                {
                    GlobalStatusSingleton.facebookRefreshToken = AccessToken.CurrentAccessToken.TokenString;
                    // request token takes care of housekeeping issues, like setting the email address. goto login success steps.
                    loginCallback.LoginSuccess();
                }
            }
        }
示例#2
0
        public async Task <string> relogin()
        {
            string result = await ThirdPartyAuthenticator.requestTokenAsync(ThirdPartyAuthenticator.METHOD_FACEBOOK, GlobalStatusSingleton.facebookRefreshToken);

            return(result);
        }