I found thousands of solutions for embedding a flash player into a Facebook wall, most of which are significantly outdated and almost nothing published after changing the basic user interfaces that FB made relatively recently.
Saying the easiest and (theoretically) still valid way for this that I found is to post a link that points to HTML that represents the Open Graph tags that FB read and interpreted as follows
<meta http-equiv="content-type" content="text/html; charset=utf-8"> <title>My title!</title> <meta property="og:title" content="My title!"> <meta property="og:type" content="video.movie"> <meta property="og:url" content="http://mysite.com/url/"> <meta property="og:description" content="content description"> <meta property="og:image" content="http://mysite.com/URL_THUMBNAIL.jpeg"> <meta property="og:site_name" content="mysite.com"> <meta property="og:video" content="http://mysite.com/flash.swf?flashVar=0101"> <meta property="og:video:type" content="application/x-shockwave-flash"> <meta property="og:video:width" content="300"> <meta property="og:video:height" content="200">
It is important to note that flashVar is necessary for the application that I use, and I would not expect this to be a problem, since it is not indicated when I use the Facebook object debugger (developers.facebook.com/tools/debug/).
Moreover, the most intriguing problem is that this solution actually works when I send a link with an account that still uses the old Facebook interface (without searching by schedule) - a small “play” button will appear [how shown on the following link] in miniature, and when I click on it, SWF will start playing on my Facebook wall.
http://das.ufsc.br/~alexandrec/SSoldFB.png
However, when I try to publish the same link to my FB account (which already has a schedule search and all other user interface changes), this play button will not appear [as shown below], and if I try to click on the thumbnail, another will open window with the link pointed to by og:url
http://das.ufsc.br/~alexandrec/SSnewFB.png
I am wondering if this is due to the fact that my site is whitelisted, but I did not find any updated documentation mentioning the actual list of this kind - and when my link works on the old interface, I consider that was already on this list.
There is another way to publish SWF files on the wall through the Graph API, which makes a POST request for an object with a source, message, etc., but I find this method not as interesting as I can not specify the width and height of the built-in player, and it is quite simple for my application.
Does anyone know why this is happening? Has Facebook thought that it will not allow users to post SWF anymore, or is it just (hopefully a temporary) error on Facebook? Is there any other way to make this work (given my need to determine the height and width of the built-in player)?