how to implement signout functionality for Facebook integration in social-auth for android

五迷三道 提交于 2019-12-08 07:14:49

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!