FB登录流程在iOS上的Google应用程序中导致空白页



我在iOS上的Google App中有FB登录流程。

当我重定向到FB Auth时。页(window.open("https://www.facebook.com/dialog/oauth?...", '_self', '');)我唯一得到的是空白屏幕...

它在Chrome上工作正常,但在Google App中不正常。

有什么想法?

var isMobile = {
        Android: function() {
            return navigator.userAgent.match(/Android/i);
        },
        BlackBerry: function() {
            return navigator.userAgent.match(/BlackBerry/i);
        },
        iOS: function() {
            return navigator.userAgent.match(/iPhone|iPad|iPod/i);
        },
        Opera: function() {
            return navigator.userAgent.match(/Opera Mini/i);
        },
        Windows: function() {
            return navigator.userAgent.match(/IEMobile/i);
        },
        any: function() {
            return (isMobile.Android() || isMobile.BlackBerry() || isMobile.iOS() || isMobile.Opera() || isMobile.Windows());
        }
    };

if ( isMobile.Android() ) {
        document.location.href = https://www.facebook.com/dialog/oauth?...", '_self', '';
    }
else if(isMobile.Windows())
{
        document.location.href="https://www.facebook.com/dialog/oauth?...", '_self', ''";
}

最新更新