Skip to main content

How to Embed Facebook Videos in your Web Pages

Facebook, like YouTube, now allows to you easily embed videos on web pages outside Facebook. That means if you come across an interesting video on Facebook, you can easily put it on your blog without having to direct your audience to the Facebook website.

There are two important points to consider though. One, you should only embed videos that are public. Facebook does provide the embed code for private videos that are shared with you or your network but your audience won’t be able to play these videos on your website.

The other issue is that Facebook still uses the Adobe Flash player to embed videos when your website is viewed on a desktop. It automatically switches to the HTML5 format on mobile devices but if someone is viewing your website from a desktop or laptop, they would need the Shockwave Flash plugin enabled to view your embedded videos.

Add Facebook Videos to your Website


First, let’s find a video on Facebook using Graph Search. Go to the search box and type a search query like videos of cats liked by my friends or videos uploaded by me or videos uploaded by my friends of friends.

How to Embed Facebook Videos in your Web Page

Next click the video thumbnail to open the video play in a lightbox window. Hover your mouse over Options and choose Embed Video from the drop-down. Facebook will provide a snippet of code that you can directly copy and paste in your website template or your blog post.

Please note that you need to be logged in to your Facebook account for generating the embed code.

Here’s a sample video embedded from Facebook.






The embedded videos are responsive and occupy the full width of the parent div. If you would like to constraint the video width or need to wrap text around the video, you’ll need to modify the .fb-video class as show in the snippet below:

  1. <style>

  2. .fb-video {


  3. /* Do not occupy the full width*/

  4. max-width: 300px !important;


  5. /* Align the video to the right of a page and wrap the text */

  6. float: right;


  7. /* Add a Grey border to the video */

  8. border: 2px solid grey;


  9. }

  10. </style>

Comments

Popular posts from this blog

Revo Uninstaller Pro 3.0.8 (Latest) Crack is Here ! The Ultimate Solution for Software Removal

Revo Uninstaller Pro helps you effortlessly uninstall software and remove unwanted programs installed on your computer! Even if you face issues uninstalling programs via the default “Windows Programs and Features (Add or Remove Programs)” control panel applet, Revo Uninstaller Pro is your go-to solution. Why Choose Revo Uninstaller Pro? Revo Uninstaller Pro is a faster and more powerful alternative to the “Windows Programs and Features (Add or Remove Programs)” applet! It comes packed with powerful features to ensure complete uninstallation and removal of programs. Key Features of Revo Uninstaller Pro Extended Scanning for Leftovers: Advanced algorithms ensure no remnants are left behind. Real-Time System Monitoring: Track system changes during program installation. Forced Uninstall: Remove remnants of already uninstalled programs. Quick/Multiple Uninstall: Quickly uninstall one or multiple programs in a row. Logs Database Usage: Integrate with a database of installation logs for a be...

7 Data Recovery 2.3.0 Enterprise Serial Keys are Here ! Comprehensive Data Recovery Software for All Your Needs

Recover Your Data Efficiently and Effectively 7 Data Recovery is a complete and capable data recovery software designed to rescue your files under almost any conditions. Whether you've accidentally deleted files, have a damaged or formatted hard drive, or lost data from mobile devices, 7 Data Recovery has you covered. Main Features Accidentally Deleted Files Recovery:  Quickly recover files that have been mistakenly deleted. Complete Recovery from Local & External Drives:  Restore data from both internal and external storage devices. Recover Data from Lost and Deleted Partitions:  Retrieve data from partitions that have been lost or deleted. Recovery of Photos, Images, Videos, and Audio:  Recover various media files from different sources. Mobile Phone Recovery on Windows:  Extract lost data from your mobile devices using a Windows PC. Memory Card Recovery:  Recover files from memory cards used in cameras, phones, and other devices Download and Registra...

Transfer Contacts from one Cell Phone to another

Did you just buy a new mobile phone? The first thing that you’ll probably is copy all the phone numbers and other contact information from the old phone to your new cell. Transfer Contacts from one Cell Phone to another The process may vary depending upon the phone support cloud but broadly, there are three options. I will discuss the most popular mobile platforms like BlackBerry, iPhone, HTC, Nokia, Windows Phone, Samsung and Android. 1. SIM based transfer If the address book of your old phone is relatively small and you only want to copy the phone numbers to your new cell phone, simply use the SIM card. Just copy the phone numbers from the old phone’s memory to your SIM card, insert this SIM card into your new phone and then copy the phone numbers in your new phone’s memory. Here’s a detailed guide on how to transfer contacts from the Nokia to an iPhone using the SIM. 2. Transfer Contacts via your Computer The SIM card based approach is good only for transferring basic phone numbers ...