Sign out of your Twitter account using JTwitter?

I use JTwitter in my Android project, and I found problems that I cannot solve. Basically, I have two buttons: Tweet and Logout. What I did in Logout just sets the tocken and tocken secret to null. After that, he asks me to authorize his application again, but will not log out. I did not find methods such as "logout ()" or something like that. Can I exit my Twitter utility using JTwitter? Is this a good or bad practice? If this is not possible, maybe Twitter4J has something better?

+4
source share
1 answer

There is no way out for Twitter apps, but you don’t need it. If you just drop the Twitter object and user access tokens, which is equivalent to logging.

+1
source

Source: https://habr.com/ru/post/1395393/


All Articles