kennylerma / facebook-actionscript-api

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

SecurityError: Error #2000: No active security context. Facebook.login() #320

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. go to site
2.login window appears on "login click"
3.enter FB login info

What is the expected output? 
- successful flow through to callback, flash updates after successful login

What do you see instead?
-blank XDProxy Window
- Flash Error:  SecurityError: Error #2000: No active security context.
- Close windows and refresh, user appears logged in.

What version of the product are you using? On what operating system?
-GraphAPI_Web_1_6.swc
-IE 8.0.76000.16385

Please provide any additional information below.
-  When I refresh the page, the display correct updates with successful login.
- This only happens in IE.... works find in all other browsers.
- I do not have any Secure Facebook settings enabled.

Original issue reported on code.google.com by david.le...@gmail.com on 20 Jun 2011 at 12:11

GoogleCodeExporter commented 9 years ago
it happen to new facebook canvas app id, no problem for the old app id. dun 
know what reason cause it.

Original comment by koonw...@gmail.com on 20 Jun 2011 at 3:39

GoogleCodeExporter commented 9 years ago
i found the solution at another issue, share with you.

Try this workaround:
1) Create a channel.html page containing:
<script src="http://connect.facebook.net/en_US/all.js"></script>
<script type="text/javascript">window.close();</script>

2) Upload this page to your server, then pass the absolute URL of the page when 
you are calling Facebook.init('YOUR_APP_ID', onInitCallback, 
{channelUrl:"http://your.site.com/channel.html"});

The basis for this workaround is here: 
http://forum.developers.facebook.net/viewtopic.php?pid=235642#p235642

Original comment by koonw...@gmail.com on 20 Jun 2011 at 3:59

GoogleCodeExporter commented 9 years ago
Hey thanks for the responses dudes,  I'll try out the latter solution.   I'm 
not running a Canvas.  This is a standalone Flash/FB app.

Koon, so you had the same issue?  When this this come about.  When we Q.A'd 
this application there was no issue with IE.  

Original comment by david.le...@gmail.com on 20 Jun 2011 at 5:19

GoogleCodeExporter commented 9 years ago
Is this issue still happening with the latest api?

Original comment by edwar...@gmail.com on 25 Oct 2011 at 9:08