0

Like other browsers, when a user sign in to a web application he can remained signed in. For example, if a user sign in to facebook using google chrome, he remains signed in at google chrome. Is there any way that, user will sign in from webview and that webview will remember the user through out the application running time? Thanks.

shaonAshraf
  • 1,107
  • 1
  • 11
  • 21

1 Answers1

0

Yes! You can get AccessToken and You can use to the AccessTokenTracker if user log out or chage profile in web , You can received callback.

 accessTokenTracker = new AccessTokenTracker() {
        @Override
        protected void onCurrentAccessTokenChanged(
            AccessToken oldAccessToken,
            AccessToken currentAccessToken) {
                // Set the access token using 
                // currentAccessToken when it's loaded or set.
        }
    };
    // If the access token is available already assign it.
    accessToken = AccessToken.getCurrentAccessToken();
}

Facebook acesstokens

redAllocator
  • 725
  • 6
  • 12