google-code-export / facebook-actionscript-api

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

Safari undefined swf.sessionchange for FBJSBridge #182

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run a facebook iframe app in safari running in OSX

What is the expected output? What do you see instead?
The app should get facebook data of current user. Instead the app can't get 
user data. I tried to run it on Safari running on Windows and it works fine. 
But in mac it doesn't.

What version of the product are you using? On what operating system?
Safari 5.0.2, Mac OSx 10.6.4

Please provide any additional information below.
I get an error from the javascript console :
TypeError: Result of expression 'swf.sessionChange' [undefined] is not a 
function in line 153 of FBJSBridge

Original issue reported on code.google.com by juliusce...@gmail.com on 18 Oct 2010 at 9:44

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I was having the same issue. I fixed it by changing the SWFObject embed.

<script type="text/javascript">
        var flashvars = {};
        flashvars.as_swf_name = "flashContent";
        var params = {};
        params.bgcolor = '#FFFFFF';
        params.menu = 'false' 
        params.allowfullscreen = "true",
        params.wmode = "opaque";
        params.scale = "noscale";
        params.allowScriptAccess = "always";
        var attributes = {};
        attributes.id = 'flashContent';
    attributes.name = 'flashContent';

        swfobject.embedSWF("app.swf", "flashContent", '500', '500', '10', false, flashvars, params, attributes);        
</script>

<div id="flashContent"></div>

Original comment by Matthew....@gmail.com on 13 Jan 2011 at 2:52

GoogleCodeExporter commented 9 years ago
Thanks Matthew, that worked for me.... took me long enough.

Original comment by gjsm...@gmail.com on 10 Feb 2011 at 10:35

GoogleCodeExporter commented 9 years ago
I had the same problem but on the PC with every browser except IE. Everything 
used to work fine on all browsers with the old FacebookGraphAPI.swc file but 
the new GraphAPI_Web_1_5.swc file will only work across all browsers with the 
SWFObject embed code used above.

Original comment by r...@ashfieldwebdesign.co.uk on 19 Feb 2011 at 9:06

GoogleCodeExporter commented 9 years ago

Original comment by edwar...@gmail.com on 6 Oct 2011 at 4:15