When using Facebook Connect via the javascript library, I get the following javascript error.
SCRIPT5007: Unable to set value of the property 'fbCallID': object is null or undefined all.js, line 22 character 4141
If I trace it down in the script, it comes out this section of code. (Line 22 in all.js) Inside the popup function, this line gets executed.
else FB.UIServer.setLoadedNode(b,window.open(b.url,b.id,c));
This call SetLoadedNode the second parameter being the window.open. The problem I am seeing is that the window opens, but the value passed to setLoadedNode is null. Thus, the call to setLoadedNode(a,b) b is null causing it to fail on the b.fbCallID line
,setLoadedNode:function(a,b){
FB.UIServer._loadedNodes[a.id]=b;
if(a.params)b.fbCallID=a.id;
}
My FB.Init looks as follows
FB.init({
appId:'xxxxxxxxx',
cookie:true,
status:true,
xfbml:true,
oauth:true
});
If the javascript error occurs, I am still able to log in. The problem it causes is that the Facebook connect popup window does not close after logging in. Presumably, it has something to do with this error.
Any insight on this would be appreciated.
This is a known bug with the Facebook JS SDK. See Permission denied error in all.js, and Facebook bugs 19042 and 20168 for some workarounds. (Basically you have to monkey-patch Facebook's javascript until they fix the problem.)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With