简体   繁体   English

有什么方法可以强制用户使用Facebook OAuth对话框登录?

[英]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 . 我在OAuth对话框中使用auth_type参数,以强制用户按照此处文档重新登录。

If the user is not logged into Facebook, he has to enter his username and password, which is good. 如果用户未登录Facebook,则必须输入用户名和密码,这很好。

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. 但是,如果用户登录到Facebook,则所做的只是显示与用户名的对话,并要求他们重新输入密码。

This isn't very nice for us, because our app has the feature to connect to multiple Facebook accounts. 这对我们来说不是很好,因为我们的应用程序具有连接到多个Facebook帐户的功能。 And to rub salt into our wounds (so to speak :P), the OAuth dialog does not even have a "not you?" 为了在我们的伤口上撒盐(可以说:P),OAuth对话框甚至没有“不是吗?”。 link to allow them to switch users. 链接以允许他们切换用户。

Our app is built with PHP and uses the server-side login flow . 我们的应用程序是使用PHP构建的,并使用服务器端登录流程

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. 我正在寻找类似Twitter的force_login之类的东西。

Use may a FB.Login instead of OAuth , if you want to force the user to login each time. 如果要强制用户每次登录,请使用FB.Login代替OAuth

Docs: FB.Login 文件: FB。登入

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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