Skip to main content

How to embed Facebook videos, auto play in WordPress

If you are active on Facebook, you have probably noticed that native Facebook videos to play automatically.

But what you may not know is how this AutoPlay switch for Facebook has been very successful. She went from only 1 billion video views per day in 2014 on about 8 billion views per day at the end of the year 2015. That’s a pretty big increase in commitment, right?

It did not like Facebook users increased by 800% in a year. some argue that these counts are inflated, because how Facebook views count. And it’s definitely some truth. But no matter what, this is not true with an increase in that massive. Videos get engagement video content by users.

To help, this power for your website use, this post will show you to embed video content Facebook videos in your WordPress site. Used correctly, these videos can accent of your WordPress site and your commitment to increase. You have also a positive side effect of cross promoting your Facebook page on your WordPress site.

embed-facebook-videos-with-autoplay

How to embed video content of Facebook videos in WordPress:

Unfortunately to make Facebook videos AutoPlay you can embed a simple IFRAME. Instead you must file header.php add a piece of code your WordPress theme and use you then a

Embed code offered by Facebook, to view these videos in your posts contain.

here all what you need to do is:

  1. Add the Facebook JavaScript SDK on your WordPress theme header.php file.
  2. The direct URL of video to your desired Facebook video to find. generate
  3. Add the embed code to your WordPress post or page.

  4. embed code to easily customize, make the video AutoPlay. I’ll show you how every step to do…

1. How Facebook JavaScript SDK to WordPress

Add to get started, you need to your topic to find header.php. Many premium themes offer methods to do this from within the theme options panel, but you can do it also, on “appearance” → “Editor” and on the search for the file header.php.

Should ideally do this in a child theme, but if you have a file header.php in your child theme, you can add it to your regular theme. Keep in mind that you may re-add the code, if you update your theme.

If you want to add the code directly in your header.php, you must findtag:

embed-facebook-videos-wordpress-autoplay1

Then, you need to make Facebook embedded video & live video player page, to get the JavaScript SDK code:

embed-facebook-videos-wordpress-autoplay2

Copy and paste this code , tag in the header.php file. It should look like after you are done:

embed-facebook-videos-wordpress-autoplay3

Make sure that you save your changes. It’s about what that must do to add WordPress Facebook JavaScript SDK!

2. The direct URL by Facebook video embed

As find next, you need to find that you want to include the actual URL for the video. To achieve this, there is a Facebook post that contains a video. If you are surrounded by your own videos, you can go on your side.

Then the right mouse button on the video and select “show video URL” :

embed-facebook-videos-wordpress-autoplay4

A box should appear, contain the exact URL:

embed-facebook-videos-wordpress-autoplay5

Just copy this URL and keep handy’s use in the next step.

3. Generating the embed code and paste it to WordPress

Now have the URL of the video you can Facebook’s embedded video player Configurator. Enter the URL in the box and choose the width that you want to be your embedded video:

embed-facebook-videos-wordpress-autoplay6

You must also decide whether the Facebook post, or just the video to take on the full text. Button, click get code beneath the video preview:

embed-facebook-videos-wordpress-autoplay7

Opens a window with the embed code you need. Since you have already added to the JavaScript SDK, you can ignore the first block of code. You simply copy the code in “step 3” , which I pointed out:

embed-facebook-videos-wordpress-autoplay8

You can now add this code in the tab text your WordPress editor or page Builder, the video embed. You must take another step actually the video AutoPlay carry out, BUT.

4 Embedded Facebook videos AutoPlay

Your embedded video playback automatically need to make, add a short piece of code, made available to the embed code Facebook. Unfortunately possible add this code not Facebook, directly from their embed tool.

Here is the piece of code you need to add:

data AutoPlay = "True"

You must add this in the < div class = "fb-video" of the code. See how I added the code to the end before the closing parenthesis? It is a little tricky if you are not familiar, but only to follow this example with code and it work, “OK”.

Once you have made that change, your video should be the AutoPlay on WordPress. Of course, just like with Facebook, muted until your visitors click on your videos. the embed Facebook videos via IFRAME

If you do not want your videos to AutoPlay a simple way, they incorporate is over an IFRAME. With this method, you must add not the Facebook JavaScript SDK to your site. This means that you need to edit not code. You must embed code to insert the IFRAME directly into your posts or pages as you would with a YouTube video.

To find the embed code, arrow click on the top right down a Facebook video post. Then select the “embed” option :

embed-facebook-videos-wordpress-autoplay9

A window will pop up with the IFRAME embed code:

embed-facebook-videos-wordpress-autoplay9-1

Add this code on the tab, your WordPress editor a text non-video content to embed Facebook video.

Final thoughts

As with any strategy, you should not abuse video content videos. Embed videos is a good way to increase commitment to your WordPress site and your Facebook page strategically. But if you embed videos to many video content, you will probably annoy your visitors to damage the user experience on your site.

So, moderation is the key. These videos sparingly around and they are a great addition for your WordPress website.

Let you know, if you have any questions about the process. It’s pretty simple, but I’m sure that the existing video auto play add code can embed code be a little confusing for some people. Share your questions with me in the comments!


Find more at: Tech Cuber

Comments

Popular posts from this blog

Intel HD Graphics Comparison – A 2017 Guide to Integrated GPUs

Every computer has an built-in GPU (Graphics Processing Unit) constructed into its processor. And if, like the majority of notebooks, a pc is powered through an Intel CPU, it has some type of Intel HD Graphics or Iris Graphics on board. If you wish to have to play high-end video games or do critical 3-D modeling, you wish to have to get a computer with a extra robust, discrete graphics chip from Nvidia or AMD that takes over from the Intel GPU whilst you release graphics-hungry methods. However, maximum mainstream customers can get excellent sufficient efficiency from Intel’s integrated graphics. Depending at the Intel HD or Iris Graphics and the CPU it comes with, you’ll be able to run a few of your favourite video games, simply no longer on the perfect settings. Even higher, built-in GPUs generally tend to run cooler and are extra energy environment friendly. Here are some answes in your questions on Intel built-in graphics. What are built-in graphics? The time period Integrated...

LG Gram 13 (2017) Review

Introduction, Design & Features It turns out love it used to be simply the day before today that LG had entered the PC marketplace within the United States. They’ve made really extensive development because the early-2016 advent of the Gram 14Z950 ; in a bit of over one quick 12 months, LG stepped forward just about each and every side of that quirky featherweight, and ended up with the well-balanced Gram 14 (2017) (dubbed the “14Z970”). The LG Gram 13 (“13Z970”, in LG-speak) you’re studying about on this article doesn’t have a predecessor, because it’s a brand spanking new fashion to LG’s lineup for 2017. That mentioned, this fashion isn’t radically other from the Gram 14 (2017) we simply discussed. Both notebooks are via and massive the similar on the subject of design and lines, the principle differentiator being bodily length. One trick the Gram 13 does have up its sleeve is a biometric fingerprint reader, a characteristic the Gram 14 (2017) oddly lacks. The Gram 13Z...

Tweaking Windows 10 Privacy Settings

Several arguable privateness problems have stored many customers from upgrading to Microsoft’s newest working gadget, even with the unfastened improve be offering (nonetheless) at the desk. While one of the crucial preliminary uproar will have been overblown, there are some settings price visiting on this post-Snowden technology of heightened worry referring to non-public privateness. Today, we’ll read about a handful of the extra questionable options and settings and display you learn how to cross about regaining a few of your privateness. The first order of commercial is to go to the Windows 10 Privacy settings. So sure, there may be in reality a centralized position the place you’ll be able to tweak these things, with extra updates to come back within the upcoming ‘Creators replace’. To get there, click on on Start, then cross to Settings > Privacy and click on the General tab at the left sidebar. Here, you’ll in finding 4 choices that may all safely be disabled. Cool represent...