Logout from Twitter using twitter4j library

谁说胖子不能爱 提交于 2019-12-23 06:49:31

问题


I have integrated twitter into an android application. I have problem in logging out user of twitter account. I have looked at almost all question on SO about it.

All says that twitter does not provide logout function. Few of them states that we can display login page each time using force_login=true.

Using twitter4j library I never call twitter URL. Most probably twitter4j handles it. So my question is that how to pass parameter force_login using twitter4j library? Is there any way to ask twitter4j library to pass parameters I want?


回答1:


For using Twitter4J this link may help you I suppose.

Happy Coding..




回答2:


mTwitter.setOAuthAccessToken(null);
mTwitter.shutdown();  //removed from latest version

This works,try, source: http://wenchaokong.blogspot.in/2013/03/android-twitter-integration-twitter4j.html



来源:https://stackoverflow.com/questions/17975286/logout-from-twitter-using-twitter4j-library

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!