开发者

iPhone Web App on Home Screen + Facebook Authenticate

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.


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

This bit of javascript worked just fine for me:

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


It is doing this to verify the Facebook login session. Currently, you cannot avoid this since your web app must go to Facebook dialog anyway to have the user login if they haven't already.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜