Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I force login with the OAuth API?

Is there a parameter I can pass to https://www.facebook.com/dialog/oauth that will force the user to login again?

The problem is if the user is logged into Facebook, it will redirect transparently back to my site, even if the user wants to use a different Facebook account.

Twitter's OAuth API accepts a "force_redirect=true" parameter which does what I want, but I can't find one for Facebook.

like image 399
Sean Fujiwara Avatar asked Jan 08 '12 05:01

Sean Fujiwara


1 Answers

I think "auth_type=reauthenticate" is the option you are looking for.

Docs: https://developers.facebook.com/docs/reauthentication/

like image 53
ctcherry Avatar answered Sep 19 '22 02:09

ctcherry