1

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.

Ojonugwa Jude Ochalifu
  • 26,627
  • 26
  • 120
  • 132
Deep Singh
  • 147
  • 1
  • 3
  • 16

1 Answers1

1

Try:

adapter.signOut(getApplicationContext(), Provider.FACEBOOK.toString());
Ojonugwa Jude Ochalifu
  • 26,627
  • 26
  • 120
  • 132
  • thanks ..man @ojonugwa ochalifu can i use this ,instead of getActivity(). bcz its shows error on getActivity() and i m not using fragment .. – Deep Singh Feb 15 '15 at 04:44
  • Yes, that's why I changed it to `getApplicationContext()`, if you have context already in the method you are using it, just pass that instead. – Ojonugwa Jude Ochalifu Feb 15 '15 at 04:45
  • can u tell me one more thing that how we can get access token from this ..@ojonugwa ochalifu – Deep Singh Feb 16 '15 at 05:23