JS SDK FB.login() works but pop-up dialog is staying open after logged in

后端 未结 6 1516
清酒与你
清酒与你 2021-02-18 20:48

I am using the JS SDK for Facebook based on the NEW GraphAPI for Auth/Login.

Has anyone had this issue when logging in after FB.login() was called via the J

6条回答
  •  醉话见心
    2021-02-18 21:11

    This problem appeared out of nowhere for my site, when facebook made a recent change to its "all.js".

    In an earlier version of their javascript I had a problem specific to IE, and I copied this little snippet of code from someone's post on the internet. It seemed cryptic, but solved the problem at the time:

      // http://developers.facebook.com/bugs/204792232920393
    
      // Hack to fix http://bugs.developers.facebook.net/show_bug.cgi?id=20168 for IE7/8/9.
      FB.UIServer.setLoadedNode = function (a, b) { FB.UIServer._loadedNodes[a.id] = b; };
      FB.UIServer.setActiveNode = function(a, b) { FB.UIServer._active[a.id]=b; };
    

    It turns out those lines were causing this problem for me. I removed them, and the problem went away. The original bug specific to IE has also been fixed, I believe, in the most recent "all.js".

提交回复
热议问题