May 252011

Last night, I finally succeeded in making the ‘Tagore dance film trilogy’ Facebook application work! The application allows the films to be viewed from within Facebook in full-screen, high definition for $0.99 per film. You can see how it works by going to, for example, and clicking on the ‘Watch the Tagore dance film trilogy’ link on the left of the screen.

My thanks to the Dynamo Player blog for pointing me towards the explanation of How to embed Dynamo videos on Facebook fan pages by Mickey Bee. Facebook has evolved a little since that detailed post was written in February but most of it is still valid.

I had very few problems following Mickey Bee’s tutorial up to step 10. Then, no matter what I tried, I kept getting the error message ‘Method Not Allowed: The requested method POST is not allowed for the URL …’ when trying to run the application. Eventually, after searching a bit, I worked out that the problem was that my .html or .htm file actually needed to have a .php extension.

Now, it may be that any programmers reading this are already rolling their eyes at how anyone could have been so stupid. The blog post by Vijay Modi which made me realise what the problem was, stated in a matter-of-fact way that “You can not POST to a normal HTML file; the operation has no meaning.” [Please don’t ask me why – I have absolutely no idea!]

So, to avoid any other independent filmmakers having to go through the same struggle as me, see below for the code of the ‘index.php’ file to which the ‘Tagore dance film trilogy’ Facebook application points to. To adapt it for any other film on Dynamo Player, you just need to replace the embed code with the one for your film, as well as replacing the Facebook App ID.

I used OpenOffice to write it, first saving a new text file in HTML format and then using View-HTML Source. If you see ways of improving the code, please let me know and I’ll update this post and the index.php file accordingly.

<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.0 Transitional//EN”>
<META HTTP-EQUIV=”CONTENT-TYPE” CONTENT=”text/html; charset=utf-8″>
<META NAME=”CREATED” CONTENT=”20110523;1390900″>
<META NAME=”CHANGED” CONTENT=”20110523;1522900″>

<DIV ID=”fb-root” DIR=”LTR”>
<P STYLE=”margin-bottom: 0cm”><SCRIPT SRC=”;xfbml=1″></SCRIPT><SCRIPT SRC=””″”></SCRIPT><EMBED SRC=”;vid=V2ab734dbdd5dfc9d66ab734d” TYPE=”application/x-shockwave-flash” NAME=”Object1″ ALIGN=BOTTOM WIDTH=480 HEIGHT=271 allowscriptaccess=”always” wmode=”direct” allowfullscreen=”true” quality=”high”>
<P STYLE=”margin-bottom: 0cm”><EMBED SRC=”;vid=V057754db9e5130b8d757754d” TYPE=”application/x-shockwave-flash” NAME=”Object2″ ALIGN=BOTTOM WIDTH=480 HEIGHT=271 allowscriptaccess=”always” wmode=”direct” allowfullscreen=”true” quality=”high”>
<P STYLE=”margin-bottom: 0cm”><FONT FACE=”Lucida Grande”><FONT SIZE=1 STYLE=”font-size: 7pt”>Chitrangada- Coming soon</FONT></FONT>
<DIV ID=”Section1″ DIR=”LTR”>
<P><A NAME=”fb-root”></A><SCRIPT SRC=””></SCRIPT><SCRIPT>
appId  : ‘216256461735445’,
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the session
xfbml  : false  // parse XFBML
FB.Canvas.setAutoResize( 100 );

 Posted by at 11:58 pm

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: