Reputation: 6635
I would like to embed a flash file into my facebook iframe canvas, I am using the PHP sdk, here is my code,
echo "<fb:swf swfsrc=\"http://my.site.com/facebook-test/the_file.swf\" width=\"760\" height=\"710\" />";
I have tried everything but it still doesn't seem to want to display.
Thanx in advance!
Upvotes: 0
Views: 4622
Reputation: 11
Embed the swf in a html file and let the iFrame call for the html file. Worked like charm for me here (under construction). The original can be found here.
Upvotes: 1
Reputation: 445
this will never run because your application is iframe
this code will only run on FBML Canvas
any way if you use the html to render a flash will not run in IE but it will run with Firefox
Upvotes: 0
Reputation: 2807
With an iframe Canvas application, you shouldn't need to use <fb:swf>
, and should instead rely on SWFObject or the like to embed it, as you would for a standard web page.
Upvotes: 0
Reputation: 11
Host your flash in a web page on a server. Then use the iframe on canvas to pull in that page thus your Flash.
Upvotes: 1
Reputation: 4054
You also need to include the imgsrc property. This is a thumbnail image that is displayed to begin with as facebook requires a user to click on the thumbnail before the actual swf is loaded
So you need something like:
echo "<fb:swf imgsrc=\"http://my.site.com/facebook-test/the_file_thumbnail.jpg\" swfsrc=\"http://my.site.com/facebook-test/the_file.swf\" width=\"760\" height=\"710\" />";
Upvotes: 0