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

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

问题描述

Facebook OAuth 弹出窗口仅在 iOS 上的 Chrome 中引发错误.developer.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天全站免登陆