Reputation: 367
User login my application with oauth, after logout my application but twitter can't do, problem is user twitter account is active.
when that logout my application at the same time logout twitter
twitter api not support this action?
Upvotes: 6
Views: 11630
Reputation: 1739
Old thread agreed, I just integrated Twitter login in my android app using Fabric. I found the following method
com.twitter.sdk.android.Twitter.logOut
I guess they have implemented it now! I couldn't find any documentation, honestly I've not put too much time into it. But I think logout means what I think it means :)
Upvotes: 1
Reputation: 12668
You can use oauth/authenticate or oauth/authorize and add "force_login=true" parameter. This will prompt the user with a login form.
Upvotes: 0
Reputation: 350
Twitter does not have api for logout. You can use the session closing api to end the user session.
Upvotes: 0
Reputation: 367
Twitter just closing the session at api ,not close the session on Twitter :)
Upvotes: 2
Reputation: 51
No, the twitter API will not log your users out of twitter.
account/end_session only ends the current API Session. I'm working on an site that requires users to be able to log out and then log back in again with another twitter account. To do that, you have to store multiple access tokens per user and establish one as the current access token. More info in the link below.
http://groups.google.com/group/twitter-development-talk/browse_thread/thread/02e44b27d7ba3661?pli=1
As far as signing out of twitter, it's up to the user to sign into twitter and sign out themselves, which is not ideal if working on a shared computer.
Upvotes: 5
Reputation: 89189
You'll have to call account/end_session to end the session of the authenticated user on twitter.
Upvotes: 1