Facebook iframe app + JS Facebook.init + IE7 + Flash9 sandbox error

When integrating facebook iframe apps, I ask for post permission - I have HTML that loads the JS Connect library and asks for a permission dialog.

  FB_RequireFeatures (["XFBML"], function () { 
        FB.Facebook.init ("_ MY_API_KEY", "MY_PATH / xd_receiver.htm");
        FB.Connect.showPermissionDialog ('publish_stream');

However, in IETester with IE7, I get strange errors

SecurityError: Error # 2060: Security sandbox violation: ExternalInterface caller http://b.static.ak.fbcdn.net/rsrc.php/zDVWA/hash/bqv7w2jc.swf cannot access .. (MY APP PAGE)

    at flash.external :: ExternalInterface $ / _ initJS ()
    at flash.external :: ExternalInterface $ / addCallback ()
    at flashutils :: PostMessage ()
    at XdComm ()

As far as I understand, the xd file is for a Flash proxy that uses this ExternalInterface to communicate with facebook and show dialog. After I click OK, everything seems to work further.

Can anyone clarify what might be causing this?

+2


source to share


1 answer


IETester is not perfect, simply because it cannot fully emulate the proper IE environment. When the situation gets tricky, it starts giving strange errors. And not much more complex than Facebook's cross-domain iframe app.



I would find a real installation of IE7 and check if the problem exists. If it isn't, it probably isn't worth your time. Microsoft provides Virtual PC , which is great for this kind of thing, as well as many XP and Vista test images containing various versions of IE. These are big downloads, but I highly recommend them through IETester.

+1


source







All Articles