How to log out from twitter
I believe this question has answers that will work for you. I'll post summaries here for convenience.
From 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.
From abraham:
You can use
oauth/authenticate
and addforce_login=true
as specified in http://dev.twitter.com/doc/get/oauth/authenticate*. This will prompt the user with a login form.
**updated reference to most recent documentation*
If any of answers above work for you, be sure to follow the link and upvote the originals.
Comments
-
Prachi almost 2 years
I have successfully created an app to login user and post the tweet using OAuth support but I cannot figure a way to logout user or force login (using twitter login). Any help is highly appreciated.
thnks in advance