Facebook Videos allows Facebook users to upload and share videos with their friends, with the ability to tag friends in the videos and video messaging support. Unlike other video hosting services such as Youtube, MetaCafe and Dailymotion, Facebook Videos is not meant as general video hosting site, but rather a social networking site with photo and video support. As a result, embed code is not available generally. Only owners of videos have the rights to view the embed code which can be placed on website or blog for direct viewing on out-of-Facebook space.
There may be time where you may want to embed a video uploaded by someone else on Facebook on a site, blog or forum, especially for videos that are interesting or closely related to topic or subject on discussion. It’s possible to direct visitors to Facebook to view the video, but further annoyance is that whoever wants to view the video must login to Facebook, or sign up for one account if haven’t got one. Though extremely popular, not everybody wants to register for Facebook account or want to sign in to Facebook just to view a video.
Here’s simple trick on how to embed Facebook Videos on any web pages. Presented below is generic embed code on Facebook Videos, which can be used embed any video on Facebook to add the video for direct viewing on web page, blog or community forum, subject to privacy settings.
How to Embed Facebook Videos on Web Page
- Firstly, check if the Embed this Video link is offered for the video. The link is located to the bottom right of video.
If it’s available, click on it and you will get the embed code for the video right away.
- If the embed code link is not present, locate the unique ID for the video from the URL. Lookup at the web browser’s address bar, and the note down the long string of numbers which come after the v parameter.
For example, video plays at http://www.facebook.com/video/video.php?v=123456789012345 will have the unique Facebook ID of “123456789012345”. The URL may be longer and contains other parameters, so always look for numbers that come after “v” parameter.
- On the web page that you want the video to display, copy and paste the following Facebook Videos embed code. Remember to replace the XXXXXXXXXXXXXXX with the actual Facebook unique video ID obtained from step above.
<object width="576" height="432" >
<param name="allowfullscreen" value="true" />
<param name="movie" value="http://www.facebook.com/v/XXXXXXXXXXXXXXX" />
<embed src="http://www.facebook.com/v/XXXXXXXXXXXXXXX" type="application/x-shockwave-flash" allowfullscreen="true" width="576" height="432">
- The video on Facebook can now be viewed directly from your website. Note that the embedded video will respect privacy settings applied by owner or uploaded of video on Facebook. Unless you share the video with Public, else your visitors have to login and be your friends or in the network of your friends to view the video.
If the visitor is not authorized to view the video, a “Secure Video” error message will be displayed, stating that “Due to Privacy Settings, not everyone can see this video. Login to Facebook if you have permission.”
Here’s an example of embedded Facebook video: