[英]iPad Safari Home Screen website gets stuck on Facebook Login
I have a website that uses the JavaScript SDK, and I have a facebook login button that calls FB.login()
that opens a new tab for the user to log in. 我有一个使用JavaScript SDK的网站,我有一个调用
FB.login()
的facebook登录按钮,为用户打开一个新标签。
This website is optimized for the iPad, and I made a home screen entry for this website so it could be viewed in full screen, like how this article mentions it: http://www.viaboxxsystems.de/html-fullscreen-apps-for-the-ipad 这个网站针对iPad进行了优化,我为这个网站制作了一个主屏幕条目,因此可以全屏查看,就像本文提到的那样: http : //www.viaboxxsystems.de/html-fullscreen-apps-换了,iPad的
My problem is that only in the home-screen-launched, fullscreen version, when I click on the login button, either I see a white screen, or I get the login details screen (but in that case, clicking "Log In" also results in a white screen), and thus I get to a dead end. 我的问题是,只有在主屏幕启动的全屏版本中,当我点击登录按钮时,我看到白屏,或者我得到登录详细信息屏幕(但在这种情况下,单击“登录”也导致白屏),因此我走到了死胡同。
How do I make it so the Facebook login goes through and I get redirected back to my website successfully? 我怎么做到这样Facebook登录通过,我成功地重定向回我的网站?
Apple's documentation for this says, Apple的文档说,
When you use this standalone mode, Safari is not used to display the web content—specifically, there is no browser URL text field at the top of the screen or button bar at the bottom of the screen.
当您使用此独立模式时,Safari不会用于显示Web内容 - 具体而言,屏幕顶部或屏幕底部的按钮栏没有浏览器URL文本字段。
Sounds to me like this might also affect the ability to open popups. 听起来像这样也可能影响打开弹出窗口的能力。 If that's the case, you could maybe use the server-side authentication flow instead.
如果是这种情况,您可以使用服务器端身份验证流程。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.