Facebook javascript sdk登录不适用于iOS /手机最佳做法 [英] facebook javascript sdk login not working on iOS / best practices for mobile

查看:107
本文介绍了Facebook javascript sdk登录不适用于iOS /手机最佳做法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图允许用户使用javascript SDK通过facebook登录登录我的webapp。它可以在桌面(safari和chrome)上工作,但是在iOS上的Safari和Chrome都会弹出错误。



错误很简单,Chrome不支持浏览器和操作系统。此问题已解决此处。不太清楚,safari的问题是什么,没有看到弹出窗口。在按钮点击中调用登录呼叫,所以我不相信浏览器应该阻止它。我还尝试允许弹出窗口,建议此处,但该解决方案没有工作也不是强制用户改变这一设置的可行的长期解决方案。



人们如何在生产中使用Facebook登录,并期望它可以在手机上工作?您需要使用手册 fb登录?看起来JavaScript SDK不适合移动浏览器和操作系统。

解决方案

这是移动浏览器中的常见问题,您会发现它也将在某些Android设备中。

为了预防,最好的做法是手动构建登录流程。
作为您的链接访问



所以是的,你需要手动整合。但是,这将是完全一致的,没有疑问。


I'm trying to allow a user to login to my webapp via facebook login using the javascript SDK. It works on desktop (safari and chrome), however the pop up fails on both safari and chrome on iOS.

The error is straight forward to chrome where the browser and OS are not supported. This issue has a work around described here. It is less clear what the issue is with safari and not seeing the pop up. The login call is called on a button click so I don't believe the browser should block it. I also tried allowing pop ups as suggested here but that solution did not work nor is it a viable long term solution to force users to change that setting.

How do folks use facebook login in production and expect it to work on mobile? Do you need to use the manual fb login? It appears that the javascript SDK doesn't work well with mobile browsers and OS's.

解决方案

This is common issue among mobile browsers and you will find that it would also be in some android devices.

For precaution it is under best practice to build flow of login manually. Go here as your link.

So yes, you will need to go with manual integration. But, it will be full-proof integration without doubts.

这篇关于Facebook javascript sdk登录不适用于iOS /手机最佳做法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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