Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Permission denied error in all.js

I am using all.js for facebook implementation. I used a facebook button on signup page . by logging through facebook i am getting user name and email of facebook user into the fields on sign up page. It's working fine on Chrome, Safari and Firefox but its giving error on IE8.

the error is in all.js line 22

{FB.UIServer._loadedNodes[a.id]=b;if(a.params)b.fbCallID=a.id;

Please help me if any one knows why this problem is occuring .

Thanks Udham

like image 396
Attri Avatar asked Sep 02 '11 06:09

Attri


3 Answers

Try this out. It worked for me, may help some one.

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

Ideally attach debugger and see which method breaks up and hack it.

like image 56
rakesh Avatar answered Dec 30 '22 21:12

rakesh


This is a known bug: http://bugs.developers.facebook.net/show_bug.cgi?id=19042 It is set as CLOSED FIXED, but many users are still reporting the error in the comments area.

A hack is suggested on comment #19:

FB.init({
....
....
});
FB.UIServer.setActiveNode = function(a,b){FB.UIServer._active[a.id]=b;} // IE hack to correct FB bug

It worked for some people. I must say it didn't work for me, but I thought it was worth to mention.

like image 34
imbrizi Avatar answered Dec 30 '22 21:12

imbrizi


I just ran into this (or a similar problem). Mine was in all.js line 22, char 3160, right after document.documentElement.style.display='none'; It was a permission denied error.

In my case, it was because the channelUrl was using a different protocol (https) than my app's iframe was being loaded under (http). I tried //mydomain.com/channel.html, but that gave me a different error. I solved it by dynamically choosing http/https for channelUrl when generating the html.

like image 43
Greg Avatar answered Dec 30 '22 21:12

Greg