使用Twitter的API来记录用户的Twitter出来的 [英] Use twitter api to log user out of Twitter

查看:203
本文介绍了使用Twitter的API来记录用户的Twitter出来的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我建立一个应用程序,我想,让用户能够设置了多个Twitter帐户与我的应用程序,所以这将是最适合我能够登录出来叽叽喳喳的,他们增加一个前新的帐户,以便他们可以输入自己的信息为他们的新帐户,而不是仅仅被转发回我的网站,因为用户已经与他们正在登录的用户帐户的访问。也有人说,这是不可能的注销与Twitter的API用户,但我知道,那是因为hootsuite.com将记录了我的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.com will log me out of my twitter account whenever I try to add a new one. Thanks!

ANSWERED

我找到了解决办法。您无法登录用户,但是你的可以的迫使他们登录到您的应用授权。您只需添加和放大器;!force_login = true参数以您的授权URL的末尾,你去好

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.com/p/twitter-api/issues/detail?id=469

推荐答案

我找到了解决办法。你不能注销用户,但可以迫使他们登录到您的应用授权。您只需添加和放大器;!force_login = true参数以您的授权URL的末尾,你去好

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.com/p/twitter-api/issues/detail?id=469

这篇关于使用Twitter的API来记录用户的Twitter出来的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆