Beginner's Guide for WordPress / Start your WordPress Blog in minutes

How to Embed a Facebook Video in WordPress

Do you want to embed a Facebook video in WordPress?

The videos that you post to Facebook also make great content for your website. By embedding a Facebook video feed, you can keep your site fresh and interesting while also growing your Facebook following.

In this article, we’ll show you an easy way to embed Facebook videos in WordPress.

How to embed a Facebook video in WordPress

Why Add Facebook Videos in WordPress?

Videos are a great way to connect with your audience and keep them engaged. This is true no matter whether you’re running a personal blog or a business website.

However, videos are particularly powerful if you want to make money online blogging with WordPress. In fact, 88% of people have bought a product or service after watching a video according to the latest blogging statistics.

Creating engaging and entertaining videos takes time and effort so if you’re posting videos to Facebook, then it makes sense to re-use them on your WordPress website.

By linking your website to your Facebook account, any new videos that you post to Facebook will appear on your website automatically. In this way, you can keep your website fresh with very little day-to-day effort.

Embedded videos can even help grow your Facebook page. If website visitors see lots of interesting videos and playlists then they’ll want to follow you on Facebook. This can get you some extra followers and more engagement.

With that being said, let’s see how you can easily embed a Facebook video in WordPress.

Installing a Facebook Video Plugin in WordPress

The easiest way to embed a Facebook video in WordPress is by using the Custom Facebook Feed Pro plugin.

It’s the best social media feeds plugin and lets you easily embed Facebook albums, comments, reviews, community posts, videos, and more on your WordPress website.

A Facebook video feed, created using Smash Balloon

In this guide, we’ll be using the pro version of Smash Balloon as it allows you to embed videos in WordPress including HD, 360o, and Facebook Live videos.

Smash Balloon Pro also lets you show photos in a custom Facebook feed, and display the total number of likes, shares, comments, and reactions below each post. However, if you’re just starting out and have a limited budget, then there’s also a free version you can use.

First, install and activate the Custom Facebook Feed Pro plugin. For more details, see our step-by-step guide on how to install a WordPress plugin.

Upon activation, head over to Facebook Feed » Settings and enter your license key into the ‘License Key’ field.

Adding your Smash Ballon license in WordPress

You’ll find this information under your account on the Smash Balloon website.

After entering the key, click on the ‘Activate’ button.

Connect Your Facebook Page or Group to WordPress

Smash Balloon Custom Facebook Feed allows you to embed videos from Facebook pages and groups. You can even show the videos in a lightbox popup so people can watch the full video directly on your WordPress website.

The first step is connecting your Facebook page or group to WordPress, so go to Facebook Feed » All Feeds and then click on ‘Add New.’

How to embed Facebook videos in WordPress

Smash Balloon lets you show posts from your Facebook timeline, photo albums, Facebook statuses, events, and more.

Since we want to embed Facebook videos in WordPress, you’ll need to select ‘Videos’ and then click on ‘Next.’

Creating a Facebook video feed using Smash Balloon

Now, you need to select the Facebook page or group where you’ll get the videos from.

To do this, click on ‘Add New.’

Choose a source for your Facebook video embeds

Next, choose whether you want to show videos from a Facebook page or group.

Once you’ve done that, click on ‘Connect to Facebook.’

How to connect Facebook to WordPress

This opens a popup where you can log into your Facebook account and choose the pages or groups that you want to use with Smash Balloon.

After that, click on ‘Next.’

Connecting Facebook accounts to WordPress

Now, Facebook will show all the information that Smash Balloon will have access to, and the actions it can perform.

To restrict Smash Balloon’s access to your Facebook account, simply click to disable any of the switches.

Just be aware that this may affect the videos that you can embed on your WordPress blog or website so we recommend leaving all the switches enabled.

Giving Smash Balloon access to your WordPress website

When you’re happy with how the permissions are set up, click on ‘Done.’

After a few moments, you should see a message confirming that you’ve connected your WordPress website to Facebook.

With that done, you’re ready to click on ‘OK.’

Connecting Facebook pages and groups to WordPress

Smash Balloon will now return you to the WordPress dashboard automatically.

How to Embed Facebook Videos in WordPress

At this point, you’ll see a popup with the Facebook group or page that you just linked to your website. Simply select the radio button next to the page or group you want to use and then click on the ‘Add’ button.

Choosing a Facebook page or group to use with WordPress

If you accidentally closed the popup, don’t worry. You can simply refresh the page to reopen the popup.

Once you’ve done that, WordPress will take you back to the Facebook Feed » All Feeds page automatically. Just like before, click on ‘Add New,’ select ‘Videos’ and then click on the ‘Next’ button.

Now, select your Facebook page or group, and click on ‘Next.’

Selecting the Facebook page or group to use with WordPress

On this screen, you can choose the template that you want to use for the video feed.

All of these templates are fully customizable so you can fine-tune the design depending on how you want to show the Facebook videos on your website.

We’re using the ‘Default’ template, but you can choose any template you want. After making your selection, click on ‘Next.’

Using the WordPress video template

After that, you can choose whether to show all the videos from your Facebook page or group or just the videos from a specific playlist.

If you choose ‘Show from a specific playlist,’ then you’ll need to enter that playlist’s URL.

Adding a Facebook playlist to WordPress

Once you’ve made a decision, go ahead and click on the ‘Next’ button.

Smash Balloon will now create a feed based on your source and the template you’ve chosen. This is a good start, but you may want to fine-tune how the videos appear on your site.

How to Customize Your Embedded Facebook Videos

The Smash Balloon Custom Facebook Feed plugin gives you lots of ways to customize how the videos appear on your website. That being said, it’s worth taking a look at these settings.

In the WordPress dashboard, go to Facebook Feed » All Feeds. Here, find the video feed you just created and click on the ‘Edit’ button next to it, which looks like a small pencil.

Customizing the Facebook video feed for WordPress

This opens the Smash Balloon feed editor, which shows a preview of your Facebook video feed to the right.

On the left-hand side, you’ll see all the different settings you can use to customize how these videos appear on your WordPress website. Most of these settings are self-explanatory, but we’ll quickly cover the major areas.

The Smash Balloon video feed editor

If you want to change the template, then click on ‘Template.’

Then, select the ‘Change’ button.

Changing the Facebook video feed layout

This opens a popup showing all the different templates you can use for your video feed.

Simply select the design you want to use instead, and then click on ‘Update.’

Changing the video feed layout

The next setting is ‘Feed Type,’ which allows you to show different content in your feed. For example, you might decide to show photos, albums, or events instead of videos.

Since we want to embed Facebook videos, you’ll typically want to ignore this area.

Next, click on ‘Feed Layout.’

Embedding Facebook videos in your WordPress website

Here, you can choose between different layouts, such as masonry and grid, and change the feed height.

As you make changes, the preview will update automatically so you can try different settings to see what looks the best.

Changing the social media feed layout

By default, Smash Balloon will show the same number of videos on desktop computers and mobile devices such as smartphones.

You can preview how your videos will look on desktop computers, tablets, and smartphones using the row of buttons in the upper-right corner.

Testing the video feed on smartphones and tablets

Mobile devices usually have smaller screens and may struggle to process lots of large, high-resolution videos. Visitors may also be using their mobile data rather than free Wi-Fi.

With that being said, you may want to show fewer videos on smartphones and tablets. To do this, simply type a different number into the ‘Mobile’ field under ‘Number of Posts.’

Creating a mobile-responsive Facebook video feed

By default, the Facebook feed shows fewer columns on smartphones and tablets, compared to desktop computers. This helps all your videos fit comfortably on smaller screens.

However, after testing the mobile version of your WordPress website, you may be unhappy with how the columns look on tablets and smartphones.

You can change the number of columns that Smash Balloon uses on tablets, mobiles, and desktop computers using the ‘Columns’ settings.

Changing the columns in a mobile responsive layout

The next settings page is ‘Color Scheme.’

Smash Balloon uses the colors inherited from your WordPress theme by default, but on this screen, you can switch to a ‘Light’ or ‘Dark’ color scheme instead.

Another option is to create your own color scheme by selecting ‘Custom’ and then using the controls to change the background color, change the text color in WordPress, and more.

Adding a custom color scheme to a social media feed

Smash Balloon can add a header to your feed, which is your Facebook profile picture and the name of the page or group. This lets visitors know where the embedded videos come from, and where they can find this content on Facebook.

To add this section, click on ‘Header’ in the left-hand menu.

Changing the Smash Balloon header settings

You can then click on the ‘Enable’ toggle.

After adding a header you can change how this area looks, including hiding or adding your Facebook profile picture, changing the size of the bio text, and more.

Removing the Facebook header from a WordPress embed

If you want to remove the header completely, then click to turn off the ‘Enable’ toggle.

By default, Smash Balloon shows the title of each video. If you want to hide the title, then select ‘Posts’ from the main Smash Balloon editor menu.

Then, go ahead and click on ‘Post Style.’

Changing the video post style

On this screen, you can hide the video titles by clicking on the ‘Show Video Title’ slider.

This can be useful if you haven’t added titles to all your videos, or your titles don’t make sense outside of Facebook.

Hiding the Facebook video titles

On this screen, you can also hide or show the video descriptions. For example, you may use these descriptions to provide extra information about the video.

To add the description, simply click to enable the ‘Show Video Description’ switch.

By default, Smash Balloon doesn’t add the Facebook ‘like’ button to your video feed. If visitors like your embedded videos then they may want to follow you on Facebook.

With that being said, you may want to add a ‘like’ button to the feed, by selecting ‘Like Box’ from the editor’s left-hand menu.

After that, simply click on the ‘Enable’ button so that it turns blue.

Adding a Facebook like button to WordPress

Smash Balloon adds this button below your video feed, but you can change this by opening the ‘Position’ dropdown and choosing ‘Top.’

On this screen, you can also change how the ‘like’ section looks including changing its width, showing how many people follow you on Facebook, adding a custom call to action, and more.

How to customize the Facebook like button in WordPress

When you’re happy with how the button looks, you can move on to the next settings page by selecting ‘Load More Button.’

The Load More button encourages visitors to scroll through more of your video feed, so Smash Balloon adds it to your embedded Facebook feed by default.

Adding a Load More button to WordPress

Since it’s such an important button, you may want to customize this button by changing its background color, hover state, label, and more.

Another option is to remove the button completely, by clicking the ‘Enable’ toggle. For example, you might remove this button and then encourage visitors to check out your Facebook page in order to see more of your videos.

Removing the Load More button from WordPress

By default, Smash Balloon allows visitors to watch your Facebook videos without leaving your WordPress website.

They can simply click on any video thumbnail to open it in a lightbox, as you can see in the following image

Smash Balloon's lightbox popup feature

Visitors can scroll through the videos in your feed using the arrows.

If they want to like a photo, leave a comment, or share the video to their page, then they can click on the ‘View on Facebook’ link.

A 'View on Facebook' link created by Smash Balloon

There are a few different ways that you can customize Smash Balloon’s default lightbox.

To see your options, click on ‘Lightbox’ in the left-hand menu.

 Customizing the lightbox popup using Smash Balloon

Here, you can change the color of the lightbox’s text, links, and background colors.

The lightbox feature allows visitors to watch your videos in a popup. If you prefer, then you can disable the lightbox so that all your videos play as small thumbnails, embedded inside the page content.

In this way, you can encourage people to visit your Facebook page, to see the full-size video. To disable the lightbox, simply click on the ‘Enable’ toggle to turn it from blue to grey.

Disabling the lightbox popup feature

When you’re happy with how the video feed looks, don’t forget to click on ‘Save.’

You’re now ready to embed the Smash Balloon feed in your website.

How to Add Facebook Videos to WordPress

With Smash Balloon, you can add the video feed to your WordPress website using a block, widget, or shortcode.

If you’ve created more than one feed using Smash Balloon, then you’ll need to know the feed’s code if you’re going to use a widget or block.

To get this code, go to Facebook Feed » All Feeds and then look at the feed="" part of the shortcode. You’ll need to add this code to the block or widget, so make a note of it.

In the following image, we’ll need to use feed="6"

Getting the code for a Facebook video feed

If you want to embed your Facebook feed in a page or post, then we recommend using the Custom Facebook Feed block.

Just open the page or post where you want to embed your Facebook videos. Then, click on the ‘+’ icon to add a new block and start typing ‘Custom Facebook Feed.’

When the right block appears, click to add it to the page or post.

The Custom Facebook Feed WordPress block

The block will show one of your Smash Balloon feeds by default. If you want to use a different video feed instead, then find ‘Shortcode Settings’ in the right-hand menu.

Here, simply add the feed="" code and then click on ‘Apply Changes.’

Adding a video feed to WordPress using code

The block will now show the videos from your Facebook page or group. Just publish or update the page to make the video feed live on your website.

Another option is to add the feed to any widget-ready area, such as the sidebar or similar section. This allows visitors to watch your Facebook videos from any page of your site.

Simply go to Appearance » Widgets and then click on the blue ‘+’ button.

Adding videos to Facebook using a widget

After that, find the ‘Custom Facebook Feed’ widget.

Then, just drag it onto the area where you want to show the video feed.

Embedding Facebook videos using a widget

The widget will show one of your Smash Balloon feeds automatically.

To show a different feed instead, type or paste the feed’s code into the ‘Shortcode Settings’ box and then click ‘Apply Changes.’

Adding a Facebook video feed to WordPress using shortcode

You can now make the widget live by clicking on the ‘Update’ button. For more information, please see our step-by-step guide on how to add and use widgets in WordPress.

Finally, you can embed videos on any page, post, or widget-ready area using a shortcode.

Simply go to Facebook Feed » All Feeds and copy the code in the ‘Shortcode’ column. You can now add this code to any Shortcode block.

For help placing the shortcode, please see our guide on how to add a shortcode.

Add a Specific Facebook Video in WordPress

Sometimes you may want to embed a specific Facebook video in a page or post. For example, you might have a Facebook video that talks about the same topics as your latest blog, or a promotional video showing the product you’ve just launched on your online store.

To embed a specific video, you’ll need to buy and install the Featured Posts extension as it allows you to display a particular post or event using its ID.

To start, go to Facebook Feed » Extensions.

Here, find the ‘Featured Posts’ extension and click on its ‘Add’ button.

How to install the Featured Posts WordPress extension

This will open the Smash Balloon website in a new tab, with instructions on how to purchase the extension.

Once you have the extension, you can install it in exactly the same way you install a plugin. If you need help, then please see our guide on how to install a WordPress plugin.

After activating the plugin, go to Facebook Feed » All Feeds and click on ‘Add New.’

Under ‘Advanced Feed Types,’ select ‘Single Featured Post’ and then click ‘Next.’

How to show a specific Facebook video in WordPress

You can now choose the page or group that you want to use as your source by following the same process described above.

On the next page, you’ll need to enter the ID of the video that you want to embed.

Adding a Facebook post URL or ID to WordPress

To get this ID, visit Facebook in a new tab and then open the video that you want to embed.

You can now go ahead and copy the URL.

How to get the post ID for a Facebook video

After that, just post the URL into your WordPress dashboard and click on ‘Next.’

Once you’ve done that, you can style the video and then add it to your site following the same process described above.

We hope this article showed you how to embed a Facebook video in WordPress. You may want to check out our guide on how to create an email newsletter and our expert pick of the best YouTube video gallery plugins.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how WPBeginner is funded, why it matters, and how you can support us.

The Ultimate WordPress Toolkit

Get FREE access to our toolkit – a collection of WordPress related products and resources that every professional should have!

Reader Interactions

40 CommentsLeave a Reply

  1. Is there a way to embed a past facebook live video? i would like to add some of my past lives from my facebook business page to my website but i keep getting error message that says “Video Unavailable this video may no longer exist, or you don’t have permission to view it”. Is there a workaround this?

    • You should be able to follow this guide for embedding Facebook live videos. You may want to check the settings for your video to ensure you don’t have any restrictions there.

      Admin

  2. Hm .. how about to put on website a code that refreshes every xy seconds and if there is a live stream show it?
    You wrote how to embeed already saved LIVE video on FB to website. But if you are out on a concert and want to stream to your page, you cannot do this procedure every time … go live, grab a link, generate code, put it on website … you know what I mean?
    Thank you

  3. This was extremely helpful. I used the header footer plugin, embeded the code in the footer, then embeded the video code into the post and all worked a treat. Now we can easily add facebook videos to blog posts. Thanks

  4. I have a website and when I embed a facebook video or a plugin for facebook comments, it all comes up in Dutch. I am based in Ireland although my servers are in the Netherlands. How can I correct this problem without having to move servers

  5. Hey, is there a way to have videos play in HD on mobile? Would love to host our videos via our facebook page, but they just look like junk when playing on mobile.

  6. Does this allow for an option to have visitors share the video back to Facebook and their friends? Or is there another plugin or something for that?

  7. This is useful, but the section to add the code is now entitled “Embedded Video Player Configurator”

    I pressed CTRL+F and pasted “Code Generator” into the search box and it brings the cursor to a different section that says “Besides the Code Generator, you can also embed the code manually.”

    “Code Generator” is only written once on the page.

    Thought I would share this in case anybody else gets confused ;)

    Ok, wish me luck please, I haven’t edited the header.php file before (I’ll let you know how I get on!)

    Thanks

  8. Thank you for this easy to follow and working tuts. This is where I get all the info I need about anything WordPress. Keep up the good work

  9. I followed these instructions and it didn’t work. I inserted the code into the text, not the visual. All that shows up is the text I copied from the second window. I also double checked the text I inserted using the “Insert Headers and Footers” plug-in.

  10. On my mac I do not find an “insert footings and headings” option under “settings.” Where else to look for it?

  11. I used this way and the plugin to insert 3 videos from my fb page to my wordpress site, but I can play only one of them, for the two of them I cannot click play on the video.
    I used the code for the footer only once and on my page I used the second part 3 times with the different code shown in facebook developers.
    Am I doing something wrong here?

  12. I guess no one is responding to these questions.

    I didn’t get 2 pieces of code, only one : (

  13. One more question- how do I center the video without breaking the code? I tried but looks like it somehow turned itself into a blockquote.

    Great tutorial thanks!

  14. Thank you for this tutorial – I followed it exactly, and it works perfectly!!! Thank you!
    Now, I have a question, how do I center it? I have added , , however, when I publish the page, wordpress is removing the center commands. Any advice?

  15. Hey,

    Is there any plans to give Facebook videos the same support as Youtube and Vimeo videos on WP? Eg. simply posting the video ink in the post editor and having the full responsive video show in the front-end..

  16. Thank you so much for this super clear tutorial!! I researched several ones and they all left me confused but yours is so well done! I was able to embed my facebook video successfully and I’m good to go! You rock Chris!

  17. This didn’t work for me and I followed all the steps. I’m confused. Some help would be nice. After following all the steps I placed the second set of code in a blog post and when I update it, it just shows the code.

    Thanks

  18. Thank you so much for this tutorial. It really helped a lot and it worked for me! Happy NEW Year!

  19. Sadly, if you have SEO plugins like Yoast, the Facebook Comments plugin is not compatible. So I ended up using Disqus.

  20. “You can add this code in your WordPress posts, pages, or even a widget area.”
    It would be nice to expand on that .I practice how do you do that?
    thanks

  21. Hi,

    This does not work if I want a video from my facebook page ? It says video invalid in code generator.my page is
    Thanks for all the videos . They are good help for beginners

Leave a Reply to Duke Cancel reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.