Hey guys,
I am trying to make an external interface call on widgets I am creating to get the domain for in/out of network stats.
urlPath = ExternalInterface.call("window.location.hostname.toString");
Of course this is throwing an error
SecurityError: Error #2060: Security sandbox violation: ExternalInterface caller XXX cannot access http://www.facebook.com/#!/XXX?ref=profile.
at flash.external::ExternalInterface$/_initJS()
at flash.external::ExternalInterface$/call()
at XXX
at XXX
From what I am reading an allowscriptaccess needs to be set to always, which I can’t do because there isn’t embed code that is sent to Facebook during a share so I don’t have control over that. I have allowed access to facebook and still have no luck.
Any ideas? I’m kinda stuck here.
Thanks all