主屏幕上的 iPhone Web 应用程序 +脸书认证
SO 的大师
我有一个可以运行的网络应用程序,它与 Facebook Connect 配合得很好。但是当我将 Web 应用程序发布到 iOS 4.3.4 上的主屏幕时在应用程序中点击“FB登录”->它触发 Safari 打开,我最终离开主屏幕视图。
有没有办法从主屏幕应用程序本身登录而不触发 Safari?
谢谢。
Gurus of SO
I have a working web app which works well enough with Facebook Connect. But when I post the Web App to the Home Screen on iOS 4.3.4 & click on 'FB Login' in the app -> it triggers Safari to open up and I end up leaving the Home Screen view.
Is there anyway to login from the Home Screen app itself and not trigger Safari?
Thank you.
尝试过 target="_webapp"、target="_blank" 等,但这些都不适合我。
这段 javascript 对我来说效果很好:
Tried target="_webapp", target="_blank", etc none of those worked for me.
This bit of javascript worked just fine for me: