Reputation: 9716
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?
Upvotes: 5
Views: 849
Reputation: 2556
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.
Upvotes: 2