gpt4 book ai didi

android - 如何退出推特

转载 作者:太空宇宙 更新时间:2023-11-03 13:36:40 25 4
gpt4 key购买 nike

我已经成功创建了一个应用程序来登录用户并使用 OAuth 支持发布推文但我想不出注销用户或强制登录的方法(使用推特登录)。非常感谢任何帮助。

提前致谢

最佳答案

我相信这个question有适合您的答案。为方便起见,我将在此处发布摘要。

来自 Ryan McGeary :

The session with Twitter is defined by a cookie owned by Twitter -- something you do not have control over. You cannot log them out of Twitter on their behalf.

If you want someone to be able to use your "switch twitter account" functionality, you'll need to pass them off to the OAuth handshake again, but use the /oauth/authorize path instead of the /oauth/authenticate path. This will allow the user to switch their user credentials at Twitter during the handshake instead of just re-authenticating using their existing Twitter session.

来自 abraham :

You can use oauth/authenticate and add force_login=true as specified in http://dev.twitter.com/doc/get/oauth/authenticate*. This will prompt the user with a login form.

**对最新文档的更新引用*

如果以上任何答案对您有用,请务必点击链接并为原件投票。

关于android - 如何退出推特,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6342113/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com