问题描述
限时送ChatGPT账号..我正在构建一个应用程序,我希望允许用户使用我的应用程序设置多个 twitter 帐户,因此我最好能够在他们添加一个新帐户,以便他们可以为他们的新帐户输入信息,而不仅仅是被转发回我的网站,因为用户已经可以访问他们登录的帐户.其他人说无法使用 twitter api 注销用户,但我知道这是因为每当我尝试添加新帐户时,hootsuite 都会将我从我的 twitter 帐户中注销.谢谢!
I'm building an app where I want to allow users to be able to set up more than one twitter account with my application, so it would be best for me to be able to log them out of twitter before they add a new account so that they can enter their information for their new account and not just be forwarded back to my site because the user already has access with the account that they're logged in with. Others have said that it is not possible to log out a user with the twitter api, but I know that it is because hootsuite will log me out of my twitter account whenever I try to add a new one. Thanks!
已回答
我找到了解决方案.您无法将用户注销,但您可以强制他们登录以授权您的应用.您只需将 &force_login=true 参数添加到授权网址的末尾即可!
I found the solution. You cannot log the user out, but you can force them to log in to authorize your app. You just add the &force_login=true parameter to the end of your authorize url and you're good to go!
http://code.google/p/twitter-api/issues/detail?id=469
推荐答案
我找到了解决方案.您无法将用户注销,但您可以强制他们登录以授权您的应用程序.您只需将 &force_login=true 参数添加到授权网址的末尾即可!
I found the solution. You cannot log the user out, but you can force them to log in to authorize your app. You just add the &force_login=true parameter to the end of your authorize url and you're good to go!
http://code.google/p/twitter-api/issues/detail?id=469
这篇关于使用 twitter api 将用户从 Twitter 注销的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
更多推荐
[db:关键词]
发布评论