Twitter OAuth: How do we register a user from Twitter?

I use the oauth method so that a user can log in to my site using Twitter and Facebook. I also plan to add Yahoo! and Google, as well as Stack Overflow. As soon as the user logs in with Twitter, they have the opportunity to log out.

I want to go to where, when the "Exit" button or link is selected, the user exits my site AND TWITTER. I need him to leave Twitter also in the case when the user accesses my site, and not to Twitter. How to do it?

Demo and example: develop.f12media.com A user clicks "Login" at the top of the page to log in to their Twitter account.

+3
source share
3 answers

Perhaps redirecting the user to http://twitter.com/logout will work .

But do not do it. OAuth should not behave this way. Just register a user outside your site.

Logging into your site through OAuth does not necessarily register them on Twitter, so logging out through your site should also not logging out.

+8
source

On Facebook, this can be done easily because facebook provides logout.php and it accepts next=sendBackURLas a parameter.

, "" , URL- , , URL- -face next=sendBackURL .

twitter, , , Twitter, ur twitter.

authorize?force_login=true, , , Twitter, , , Twitter, , .

Twitter URL- , URL-, .

+1

, Twitter, Twitter. . . auth, , Twitter . , , , Twitter , .

, , . OAuth, .

0

All Articles