简体   繁体   中英

Any way to force the user to login using the Facebook OAuth dialog?

I am using the auth_type parameter with the OAuth dialog to force the user to relogin as per the documentation here .

If the user is not logged into Facebook, he has to enter his username and password, which is good.

However, if the user is logged into Facebook, all it does is show a dialogue with the user's name and asks them to re-enter their password.

This isn't very nice for us, because our app has the feature to connect to multiple Facebook accounts. And to rub salt into our wounds (so to speak :P), the OAuth dialog does not even have a "not you?" link to allow them to switch users.

Our app is built with PHP and uses the server-side login flow .

Is there anyway to force the user to have to re-enter both his password and email address? Something like Twitter's force_login is what I am looking for.

Use may a FB.Login instead of OAuth , if you want to force the user to login each time.

Docs: FB.Login

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM