Facebook OAuth “Unsupported” in Chrome on iOS

后端 未结 7 1756
我寻月下人不归
我寻月下人不归 2020-12-01 04:38

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?

7条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-01 05:15

    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}
    

    See more info here https://developers.facebook.com/docs/facebook-login/login-flow-for-web-no-jssdk/

    Remark: I personnaly use the server OAuth in that case but this should do the trick and is quite simple

提交回复
热议问题