Facebook login hangs at “XD Proxy” when page is installed via Chrome Web Store

后端 未结 8 2392
长情又很酷
长情又很酷 2021-01-31 06:25

The created the following web application:

http://www.web-allbum.com/

I also added it to the Chrome Web Store:

https://chrome.google.com/webstore/detail/

8条回答
  •  粉色の甜心
    2021-01-31 07:01

    Another workaround is to use this code after you call FB.init():

    if (/chrome/.test(navigator.userAgent.toLowerCase())) {
        FB.XD._origin = window.location.protocol + '//' + document.domain + '/' + FB.guid();
        FB.XD.Flash.init();
        FB.XD._transport = 'flash';
    }
    

    The pop-up window remains open and blank, but I found that in my Chrome Web Store app, the authentication goes through when this code is used.

    This bug is also filed on Facebook Developers here: http://developers.facebook.com/bugs/278247488872084

提交回复
热议问题