开发者

Use twitter api to log user out of 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 acc开发者_如何学Pythonount 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

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


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜