使用twitter4j图书馆从Twitter注销 [英] Logout from Twitter using twitter4j library
问题描述
我已经将微博变成一个Android应用程序。我在退出Twitter帐户的用户的问题。我看过几乎所有问题上的SO一下。
所有说,微博不提供注销功能。他们中很少有人指出,我们可以使用每次显示的登录页面force_login =真
。
使用twitter4j库我从来没有叫Twitter的网址。最有可能twitter4j处理它。所以我的问题是,如何用twitter4j库传递参数 force_login
?有什么办法问twitter4j库来传递参数我想要什么?
mTwitter.setOAuthAccessToken(NULL);
mTwitter.shutdown(); //从最新的版本中删除
这工作,尝试,来源:
的http://wenchaokong.blogspot.in/2013/03/android-twitter-integration-twitter4j.html
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?
mTwitter.setOAuthAccessToken(null);
mTwitter.shutdown(); //removed from latest version
This works,try, source: http://wenchaokong.blogspot.in/2013/03/android-twitter-integration-twitter4j.html
这篇关于使用twitter4j图书馆从Twitter注销的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!