Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在我的 Android 项目中使用 JTwitter,但我发现了一个我无法解决的问题。基本上,我有两个按钮:Tweet 和 Logout。我在注销时所做的只是将一个令牌和一个令牌秘密设置为空。在此之后,它要求我再次授权我的应用程序,但不会将我注销。我没有找到任何类似“logout()”或类似的方法。是否可以使用 JTwitter 从我的 Twitter 帐户中注销?这是一个好习惯还是坏习惯?如果不可能,也许 Twitter4J 有更好的东西?
Twitter 应用程序没有注销功能——但您不需要注销。如果您只是丢弃Twitter对象和用户的 oauth 访问令牌,则相当于注销。
Twitter