How can I force login with the OAuth API?

Sean Fujiwara picture Sean Fujiwara · Jan 8, 2012 · Viewed 7.7k times · Source

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.

Answer

ctcherry picture ctcherry · Jan 8, 2012

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

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