How to Embed a Facebook Video in WordPress
Do you want to embed a Facebook video in WordPress?
Due to the recent popularity of Facebook videos and Facebook live platform, people also want to embed Facebook videos in WordPress. In this post, I shall show you how to embed Facebook videos in WordPress with ease and Facebook live video in WordPress.
Why Add Facebook Videos in WordPress?
I suggest to my friends and followers that they should not upload videos to WordPress. I also suggest using a video sharing site like YouTube.
Currently, Youtube is the largest video hosting platform in the world, Facebook is the biggest social network and their videos are growing very fast. Recently Facebook has introduced Facebook live video and Facebook auto-play features. Marketers are paying attention to these features from all over the world. It is because they increase user engagement and overall reach.
By using Facebook videos, you can increase the likes on your Facebook page. For more social experience, you can install Facebook comments, add Facebook page plugin, and add Facebook like button on your WordPress website.
After this discussion, let’s take a look how to embed Facebook videos on a WordPress website.
Embedding Facebook Videos in WordPress
First of all, you need to select the video that you want to embed on your website.
Now use the right click on the video date or name, and copy the link address.
After doing so, you have to go to Facebook embedded video player website and scroll down to reach code generator section.
Now paste the URL that you copied earlier while clicking on the video name or date.
The next step is to click on the get code button and it will show you a popup of two boxes that contain code.
The first part of the code will go in the header section of your site.
There are several ways to add this code to your site.
If you are comfortable with editing files of theme, then you can add it to your theme and you need to edit header.php file and paste it after the <body> tag.
After activation, now go to the settings>Insert Headers and Footer page in admin of your WordPress and paste the code in the footer box. And press save changes to save it.
Note: You only have to add the first part of the code one time. For the next time, you need to add a Facebook video, to do that, you will copy and paste the second part of the code.
So go to the Facebook video embedder page to copy the second part of the code to paste it.
You can add the code in your pages, posts and even a sidebar widget of your WordPress site. While adding the code to your page and posts, you will have to go to the text editor, otherwise, WordPress visual editor will mishandle the code.
Now go to your site to see the Facebook video embedded.
How to Embed Facebook Live Video in WordPress
You can embed the Facebook live video as well as a regular video let’s see how to do it. The difference is, you need to get the link of your Facebook live video.
The question is how to get the URL of Facebook live video?
Facebook does not enable you to get a URL of your live video before you launch the live video. If you want to broadcast your live video of Facebook on your site, you need to go live.
You need to do the same procedure after going live, right click on the date and select the copy link address to copy the URL of live video.
After getting the URL, you need to visit Facebook embedded video player website and paste the link in the ‘URL of video’ field.
Then the video embed code generator will fetch and show a preview of live Facebook video. You will have to click on the get code button and follow the rest of the instruction as described above to add these codes to your site.
After adding the Facebook live video code on your website, your visitors will be able to watch the Facebook live video from your site directly and also in their Facebook feeds.
I hope that you liked the post and you learn how to embed Facebook videos in WordPress. You may want to see our guide on Voice Search SEO.
Arsalan Rauf is an entrepreneur, freelancer, creative writer, and also a fountainhead of Green Hat Expert. Additionally, he is also an eminent researcher of Blogging, SEO, Internet Marketing, Social Media, premium accounts tips and tricks, etc.