Tuesday 10 January 2012

Embed Youtube Videos in a Facebook Page Tab: Add Video Album


Embed Youtube Videos in a Facebook Page Tab: Add Video Album This article explains you how to add videos to your facebook page. Now you can spice up you music band, product, comedy site etc fan page with videos from your youtube channel.

Embed Flash, Youtube Videos in Fan Page Using FBML

Step 1 : Go to your Facebook Fan Page. Click on "Edit Page"
Embed Flash, Youtube Videos in Fan Page Using FBML
Step 2 : Scroll Down to the last of this page. Click on "Static FBML" under More Applications.
Embed Youtube Videos in a Facebook Page Tab
Step 3 : Click "Add to My Page" and select you Facebook page to Add it.
Step 4 : After you’ve added FBML application Go back to Facebook page, Click on "Edit Page" again like Step 1. Scroll down to look for "FBML" and click "Edit"
Embed Youtube Videos in a Facebook Page Tab
Step 5 : Enter the Name of the Page Tab (For eg. My Videos etc) and enter the FBML code (discussed below) as shown.
Embed Youtube Videos in a Facebook Page Tab

# FBML Code for Embedding Youtube Videos, Flash Based Music, Video Player

<fb:swf
swfbgcolor="000000" imgstyle="border-width:5px; border-color:white;"
swfsrc='http://www.youtube.com/v/kffacxfA7G4&autoplay=1'
imgsrc='http://img.youtube.com/vi/kffacxfA7G4/0.jpg' width='480' height='360' />
Notice certain aspects in this video code… youtube videos are in flv so we can use swfsrc in fbml. The kffacxfA7G4 is the video id which you can find in any youtube url.
&autoplay=1 is an youtube customize trick that will automatically start playing the video when the image is clicked. Here the image used is the default screenshot of the youtube video. I guess you can figure out the rest.
Simply use this code and replace the youtube video id with yours. Here is how it look (below)
Embed Youtube Videos in a Facebook Page Tab

# Adding Your Youtube Channel Videos or Playlist

You can create a playlist of youtube videos at youtube.com/custom_player. Create a custom playing with the videos and add the playlist id as shown in the code.
swfsrc='http://www.youtube.com/cp/vjVQa1PpcFMB8fIeBai45TUk3mBKwfzOz_kOVjVymnY='
Now instead of single video you now have a playlist of youtube videos embed in your facebook fan page.
I hope this helps… Let u know of any issues in comments…

0 comments:

Post a Comment