Facebook OAuth“不支持”在iOS中的Chrome [英] Facebook OAuth "Unsupported" in Chrome on iOS

查看:89
本文介绍了Facebook OAuth“不支持”在iOS中的Chrome的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Facebook的OAuth弹出窗口仅在iOS上的Chrome中发生错误。这两个developers.facebook.com和google都没有提到这一点。想法?

The Facebook OAuth popup is throwing an error in Chrome on iOS only. Both developers.facebook.com and google have turned up nothing about this. Ideas?

推荐答案

您可以使用重定向方法如下(通过检测用户代理为chrome ios):

You can use the redirection method as follow for this case (by detecting the user agent being chrome ios):

https://www.facebook.com/dialog/oauth?client_id={app-id}&redirect_uri={redirect-uri}

在这里查看更多信息 https://developers.facebook.com/docs/facebook-login/login-flow-for-web-no-jssdk/

注意:我在这种情况下使用服务器OAuth,但这应该是诀窍,很简单

这篇关于Facebook OAuth“不支持”在iOS中的Chrome的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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