主屏幕上的iPhone Web App + Facebook身份验证 [英] iPhone Web App on Home Screen + Facebook Authenticate

查看:132
本文介绍了主屏幕上的iPhone Web App + Facebook身份验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

SO专家

我有一个可以正常运行的网络应用程序,可以与Facebook Connect很好地配合使用.但是,当我将Web App发布到iOS 4.3.4& amp;上的主屏幕时,在应用程序中单击"FB登录"->它触发Safari打开,我最终离开主屏幕视图.

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.

反正可以从主屏幕应用程序本身登录而不触发Safari吗?

Is there anyway to login from the Home Screen app itself and not trigger Safari?

谢谢.

推荐答案

尝试了target ="_ webapp",target ="_ blank"等,这些都不适合我.

Tried target="_webapp", target="_blank", etc none of those worked for me.

这部分javascript对我来说很好:

This bit of javascript worked just fine for me:

<a href="#" onclick="window.open('<put your facebook login URL here>','_parent'); ...

这篇关于主屏幕上的iPhone Web App + Facebook身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆