How to you use youtube videos in FBML?

tttttt
YYY



Since I posted an article about the FBML, I am getting a lot of calls and questions from my friends. They ask me how to display youtube videos, flash and other types of third party videos on facebook page.



In this tutorial I am going to teach you how can we add youtube videos or youtube channels using FBML codes.



As facebook doesnt allow direct display of any flash videos, we make a small trick here, we make an illusionary Image like a video player, and viewer can get the video by clicking on it.



You can get the code for your channel from here,

go- http://www.youtube.com/my_players



It will be some what like this



<object height="413" width="746"><param name="movie" value="http://www.youtube.com/cp/vjVQa1PpcFP7c9h_X6eoypqIoL98cDrPHUUxopXjfG0=">
</param>
<embed src="http://www.youtube.com/cp/vjVQa1PpcFP7c9h_X6eoypqIoL98cDrPHUUxopXjfG0=" type="application/x-shockwave-flash" width="746" height="413"></embed></object>


Now the FBML code for this should be




<swf height="413" imgsrc="http://img.youtube.com/vi/ayw9TYz2Yzc/2.jpg" imgstyle="border-width:3px; border-color:white;" swfbgcolor="000000" swfsrc="http://www.youtube.com/cp/vjVQa1PpcFP7c9h_X6eoypqIoL98cDrPHUUxopXjfG0=" width="746"></swf>




Thats it!

CHEERS!

Post a Comment

.