Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Log out from Twitter account using JTwitter?

I'm using a JTwitter in my Android project and I found an issues, which I can't resolve. Basically, I have two buttons: Tweet, and Logout. What I was doing in Logout is just setting a tocken and a tocken secret to null. After this it asks me to Authorize my app again, but does not log me out. I didn't find any methods like "logout()" or something similar. Is it possible to log out from my Twitter acout using JTwitter? Is it a good or bad practice? If it is not possible, maybe Twitter4J has something better?

like image 431
lomza Avatar asked Nov 04 '22 06:11

lomza


1 Answers

There is no logout for Twitter apps -- but you don't need one. If you just discard the Twitter object & the user's oauth access tokens, that's equivalent to logging out.

like image 186
Daniel Winterstein Avatar answered Nov 09 '22 14:11

Daniel Winterstein