Instructables

Enhance your Facebook Page using FBML

Step 4: Embed a YouTube Video

This code will embed a YouTube video into your page.
Replace ID_HERE with the real video id from the YouTube URL.

You can also change how big the player is, but be aware that the width cannot exceed 520px, and that due to Facebook's security protocol, the user will need to click on the video to activate the plugin.

(The editor stripped out the < at the beginning of the code, so you have been warned)

fb:swf swfsrc="http://www.youtube.com/v/ID_HERE"
       imgsrc="http://img.youtube.com/vi/ID_HERE/default.jpg"
       width="480" height="360" />


More info:http://developers.facebook.com/docs/reference/fbml/swf
 
Remove these adsRemove these ads by Signing Up
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!