Facebook Connect IE9 Javascript Error in all.js File

When using Facebook Connect through javascript library, I get the following javascript error.

SCRIPT5007: Unable to set property value 'fbCallID': object is null or undefined all.js, line 22 character 4141

If I trace it in a script, it will exit in this section of code. (Line 22 in the file all.js) Inside the pop-up function, this line is executed.

else FB.UIServer.setLoadedNode(b,window.open(b.url,b.id,c)); 

This call to SetLoadedNode the second parameter is window.open. The problem I see is that the window opens, but the value passed to setLoadedNode is null. So the call to setLoadedNode (a, b) b is null, which causes a failure in the line b.fbCallID

 ,setLoadedNode:function(a,b){ FB.UIServer._loadedNodes[a.id]=b; if(a.params)b.fbCallID=a.id; } 

My FB.Init is as follows

 FB.init({ appId:'xxxxxxxxx', cookie:true, status:true, xfbml:true, oauth:true }); 

If a javascript error occurs, I can still log in. The problem is that the Facebook connect popup does not close after logging in. Presumably, this has something to do with this error.

Any understanding of this will be appreciated.

+6
source share
1 answer

This is a known bug with the Facebook SDK. See All.js permission denial error and Facebook errors 19042 and 20168 for some workarounds. (Basically, you have javascript for the monkey-patch Facebook until they fix the problem.)

+2
source

Source: https://habr.com/ru/post/896882/


All Articles