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?
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.
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