问题
I am using social auth library for sharing and login with social media in android app. I have logged in and authorize successfully with facebook.
class SignUp extends Activity {
SocialAuthAdapter adapter;
@Override
protected void onCreate(Bundle savedInstanceState) {
adapter.authorize(SignUp.this, Provider.FACEBOOK);}
but I don't know how to signout from this.
回答1:
Try:
adapter.signOut(getApplicationContext(), Provider.FACEBOOK.toString());
来源:https://stackoverflow.com/questions/28523014/how-to-implement-signout-functionality-for-facebook-integration-in-social-auth-f