开发者

My IFRAME facebook app doesn't work in Opera and IE

开发者 https://www.devze.com 2023-01-18 00:08 出处:网络
It works nicely in FF and Chrome, but in Opera I get timeout error. The loading animation is going and going on but nothing appears. Could you please help me? My deadline开发者_如何学运维 comes tommor

It works nicely in FF and Chrome, but in Opera I get timeout error. The loading animation is going and going on but nothing appears. Could you please help me? My deadline开发者_如何学运维 comes tommorow :-(

Pastebin entire source code: http://pastebin.com/yjFWwqPv


Facebook connect is broken in Opera due to the problem I explained here:

http://my.opera.com/hallvors/blog/2010/07/20/postmessage-s-targetorigin-and-security

I don't think there is anything you can do about it except waiting for either Opera or Facebook to fix it. Due to the nature of the problem is pretty hard to work around - unless, I guess, you make a local copy of http://connect.facebook.net/en_US/all.js with a bugfix in it. That fix should be as simple as finding this code:

FB.XD._origin=(window.location.protocol+'//'+window.location.host+'/'+FB.guid())

and remove the '+FB.guid()' part. While I know that this will avoid the Opera security policy violation, I'm not sure if this workaround will cause the script to fail in other ways - untested.

0

精彩评论

暂无评论...
验证码 换一张
取 消