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.
Embed Facebook Video
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>
Home — How-to Guides — Embed — Facebook
Latest
Previous
Next Post »

8 comments

Write comments
Unknown
AUTHOR
27 January 2017 at 03:53 delete

Such a good information given to us..thank you..
Tripura 10th Board Time Table 2017

Reply
avatar
Unknown
AUTHOR
13 November 2018 at 05:04 delete

Facebook followers are important on your business pages for credibility and social promotion purposes. Using the Facebook fan page is one way to boost Facebook fans. Since, when they click on like button of your website, what you are sharing on your fan page wall will be visible on the Facebook timeline of fans. Twitter is a great tool for the internet marketer, blogger, and webmasters. Most of the Twitter users fall into the above category and making them joining your Facebook profile is a good idea for improving your connection & for brand building.


Facebook followers

Reply
avatar
Dino Jenifer
AUTHOR
5 June 2019 at 10:28 delete

Great stuff buddy.
Great post, I have read this post here I got very useful information. This is a very useful article
fb downloder iphone

Reply
avatar
9 March 2021 at 00:54 delete

nice information in this blog technical krishna . this is Indian Hindi tech blog.

Reply
avatar
viblink