How to Embed a Facebook Video in WordPress


Do you want to embed a Facebook video on your WordPress site? With the popularity of Facebook live and Facebook’s videos, we’ve had several of our users ask if it was possible to embed Facebook videos in WordPress. In this video, we will show you how to easily embed a Facebook video and a Facebook live video in WordPress.

To start, you will want to visit the Facebook Embedded Video and Live Video Player page found here:

https://developers.facebook.com/docs/plugins/embedded-video-player

Here you will add the URL of the video from Facebook you would like to display as well as set the pixel width you want the video to display at and it should display below. There’s even the option to include the full post in a checkbox under the URL of the video box.

Now that your selected video is set, click the get code button to bring up the required code. For a Facebook video to display on your site you will need to add the first code block to your theme’s header. If your theme does not have a built-in method, you can use the Insert Headers and Footers plugin found here:

https://wordpress.org/plugins/insert-headers-and-footers/

With the above plugin, you would go under Settings, Insert Headers and Footers and add the code in the top box and click the Save button. This will automatically add the code in your site’s header for you. With that added you can add the second code from Facebook and it will embed the video the same as it would a YouTube video.

For a Facebook Live video, you will first need to go live due to Facebook’s limitations. That will allow you to right click on the date that you went live and copy the live video’s URL. Take that URL back to the Facebook Video Player Configurator to customize the display to how you’re wanting and click the Get Code button.

If you’ve already added the JavaScript to your header from another video or embed then you don’t need to add that for this new video. Add the second code block to your site where you want the live video to appear.

If you liked this video, then please Like and consider subscribing to our channel here for more WordPress videos.
https://www.youtube.com/subscription_center?add_user=wpbeginner

Feel free to take a look at the written version of this tutorial here:
https://www.wpbeginner.com/wp-tutorials/how-to-embed-a-facebook-video-in-wordpress/

Check us out on Facebook
https://www.facebook.com/wpbeginner

Follow us on Twitter
http://twitter.com/wpbeginner

Check out our website for more WordPress Tutorials
http://www.wpbeginner.com

Read more: youtube.com

Read More