I am trying to integrate my app to twitter and I do it
but my question is: How I can logout from twitter? can I remove RequestToken or OAuth of my app?
I tried to use:
twitter.setOAuthAccessToken(null);
but does not work
also does not work
please help me
thanks in advance
@Rob answer is working, but this methods was removed in Twitter SDK v3.0.0
According to upgrading guide:
[Removed]
TwitterCore#logOut()
was removed useTwitterCore.getInstance().getSessionManager().clearActiveSession()
instead.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With