ashishkummar / facebook-actionscript-api

Automatically exported from code.google.com/p/facebook-actionscript-api
0 stars 0 forks source link

Security Sandbox Violation #300

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.I's writing app flash on facebook.com
2.Facebook.api('me', handleFetchMe);
3.Error :(

What is the expected output? What do you see instead?
Warning: Failed to load policy file from 
https://graph.facebook.com/crossdomain.xml

*** Security Sandbox Violation ***
Connection to 
https://graph.facebook.com/me?access%5Ftoken=170081143050248%7C2%2EFoI6zZm6DVWKA
o88J4QIIg%5F%5F%2E3600%2E1305086400%2E1%2D1750671855%7CCNygK5jjPrnmlwqOU7IodWiMs
lU halted - not permitted from......

What version of the product are you using? On what operating system?
win 7 64bit
flash cs 5.5
flash builder 4.5
Graph API 1.6.1

Please provide any additional information below.
help me, please !

Original issue reported on code.google.com by tkc5787@gmail.com on 11 May 2011 at 2:21

GoogleCodeExporter commented 8 years ago
This could be a temporary bug on Facebook's side. Is this still happening?

Original comment by rovertn...@gmail.com on 11 May 2011 at 3:43

GoogleCodeExporter commented 8 years ago
Yes It's still happening.
I am in the hell with it now.
:|

Original comment by zkid...@gmail.com on 16 May 2011 at 4:01

GoogleCodeExporter commented 8 years ago
This is not related to this SDK.  The issue had been happening to me for about 
5 weeks.  I just updated my LoaderContext to the following:

var context:LoaderContext = new LoaderContext();
context.checkPolicyFile = true;
context.securityDomain = SecurityDomain.currentDomain;
context.applicationDomain = ApplicationDomain.currentDomain;

then pass that into your loader.load() function as the 2nd argument:

loader.load(new URLRequest(url), context);

You will need to import the following:

import flash.system.LoaderContext;
import flash.system.SecurityDomain;
import flash.system.ApplicationDomain;

Hope that helps.

Original comment by jzed...@ricochetlabs.com on 16 May 2011 at 4:08

GoogleCodeExporter commented 8 years ago
jzed...@ricochetlabs.com, how would that help? I think the error is related to 
the api because the connection url is a graph call.

tkc5787, is this still happening for you? If so can you provide some more 
source code please.

Original comment by rovertn...@gmail.com on 27 May 2011 at 8:12

GoogleCodeExporter commented 8 years ago
If you're still having trouble loading the crossdomain file (i have no idea why 
it wouldn't, since its supposed to be automatically loaded whenever flash 
player makes a url request to another domain), maybe try explicitly loading it

Security.loadPolicyFile("https://graph.facebook.com/crossdomain.xml");

at the beginning of your code.

It could be timing out when trying to load the policy file.

Original comment by rovertn...@gmail.com on 27 May 2011 at 9:03