{"id":997,"date":"2020-08-04T06:46:04","date_gmt":"2020-08-04T06:46:04","guid":{"rendered":"\/blog\/?p=997"},"modified":"2020-08-04T06:47:24","modified_gmt":"2020-08-04T06:47:24","slug":"how-to-embed-a-facebook-live-video-on-website","status":"publish","type":"post","link":"https:\/\/randomtools.io\/blog\/how-to-embed-a-facebook-live-video-on-website\/","title":{"rendered":"how to embed a Facebook live video on website"},"content":{"rendered":"<p>Facebook Live is a great way to engage with your audience, It is possible you may want to\u00a0embed the live video to your website or blog. so your website visitor or subscribers who don&#8217;t use Facebook can also view the live video and engage with it.<\/p>\n<p>This blog post we are going to talk through step by step way to\u00a0embed your Facebook live video to your blog or website. If you own a Facebook page and would like to go live for all the page subscribers, you can go live and use the below steps to publish this live video to the website as well at the same time.<\/p>\n<h2>What is Facebook Live Video<\/h2>\n<p>Facebook Live Video is a real-time broadcasting feature from Facebook allowing content creators to broadcast their video or real-time moments to their fans or subscribers. It is highly engaging. A camera or webcam can be used to stream the live videos through Facebook<\/p>\n<p><img loading=\"lazy\" class=\"aligncenter size-full\" src=\"https:\/\/live.staticflickr.com\/3754\/32385600144_3370bdaf53_b.jpg\" alt=\"Facebook Live \" width=\"1024\" height=\"596\" \/><\/p>\n<h2>Embed a Facebook live video on the website &#8211;<\/h2>\n<p>Follow the below steps to embed the video to your website<\/p>\n<h3>Step 1 &#8211; Get Video Post URL<\/h3>\n<p>First of all, you need to find the video URL of the video you want to embed, The video needs to be public, hence if you are using a closed group this won&#8217;t work.<\/p>\n<p>For testing you can use this\u00a0<strong>example URL<\/strong>:<\/p>\n<pre class=\"_5s-8 prettyprint lang-code prettyprinted\"><span class=\"str\">\"https:\/\/www.facebook.com\/FacebookDevelopers\/videos\/10152454700553553\/\"<\/span><\/pre>\n<h3 id=\"2--load-javascript-sdk\">Step 2. Load JavaScript SDK<\/h3>\n<p>To use the Embedded Video Player Plugin, or any other Social Plugin, you need to add the\u00a0<a href=\"https:\/\/developers.facebook.com\/docs\/javascript\/\" target=\"_blank\" rel=\"noopener\">Facebook JavaScript SDK<\/a>\u00a0to your website. You need to load the SDK only once on a page, ideally right after the opening\u00a0<code>&lt;body&gt;<\/code>\u00a0tag:<\/p>\n<pre class=\"_5s-8 prettyprint lang-code prettyprinted\"><span class=\"tag\">&lt;div<\/span> <span class=\"atn\">id<\/span><span class=\"pun\">=<\/span><span class=\"atv\">\"fb-root\"<\/span><span class=\"tag\">&gt;&lt;\/div&gt;<\/span>\r\n<span class=\"tag\">&lt;script<\/span> <span class=\"atn\">async<\/span> <span class=\"atn\">defer<\/span> <span class=\"atn\">src<\/span><span class=\"pun\">=<\/span><span class=\"atv\">\"https:\/\/connect.facebook.net\/en_US\/sdk.js#xfbml=1&amp;version=v3.2\"<\/span><span class=\"tag\">&gt;&lt;\/script&gt;\r\n<\/span><\/pre>\n<h3 id=\"3--place-embedded-video-player-tag\">Step 3. Place Embedded Video Player Tag<\/h3>\n<p>Next place the Embedded Video Player tag at any place of your website. Replace\u00a0<code>{your-video-post-url}<\/code>\u00a0with your posts&#8217; URL.<\/p>\n<pre class=\"_5s-8 prettyprint lang-code prettyprinted\"><span class=\"tag\">&lt;div<\/span> <span class=\"atn\">class<\/span><span class=\"pun\">=<\/span><span class=\"atv\">\"fb-video\"<\/span> <span class=\"atn\">data-href<\/span><span class=\"pun\">=<\/span><span class=\"atv\">\"{your-video-post-url}\"<\/span>  \r\n  <span class=\"atn\">data-allowfullscreen<\/span><span class=\"pun\">=<\/span><span class=\"atv\">\"true\"<\/span> <span class=\"atn\">data-width<\/span><span class=\"pun\">=<\/span><span class=\"atv\">\"500\"<\/span><span class=\"tag\">&gt;&lt;\/div&gt;\r\n<\/span><\/pre>\n<h3 id=\"4--testing\">4. Testing<\/h3>\n<p>Once you completed these steps you&#8217;re able to test your Embedded Video Player. A completed integration will look like something like this:<\/p>\n<p>&nbsp;<\/p>\n<pre class=\"_5s-8 prettyprint lang-code prettyprinted\"><span class=\"tag\">&lt;html&gt;<\/span>\r\n  <span class=\"tag\">&lt;title&gt;<\/span><span class=\"pln\">My Website<\/span><span class=\"tag\">&lt;\/title&gt;<\/span>\r\n<span class=\"tag\">&lt;body&gt;<\/span>\r\n  <span class=\"tag\">&lt;div<\/span> <span class=\"atn\">id<\/span><span class=\"pun\">=<\/span><span class=\"atv\">\"fb-root\"<\/span><span class=\"tag\">&gt;&lt;\/div&gt;<\/span>\r\n  <span class=\"tag\">&lt;script<\/span> <span class=\"atn\">async<\/span> <span class=\"atn\">defer<\/span> <span class=\"atn\">src<\/span><span class=\"pun\">=<\/span><span class=\"atv\">\"https:\/\/connect.facebook.net\/en_US\/sdk.js#xfbml=1&amp;version=v3.2\"<\/span><span class=\"tag\">&gt;&lt;\/script&gt;<\/span>\r\n  <span class=\"tag\">&lt;h1&gt;<\/span><span class=\"pln\">My Video Player<\/span><span class=\"tag\">&lt;\/h1&gt;<\/span>\r\n  <span class=\"tag\">&lt;div<\/span> <span class=\"atn\">class<\/span><span class=\"pun\">=<\/span><span class=\"atv\">\"fb-video\"<\/span>\r\n    <span class=\"atn\">data-href<\/span><span class=\"pun\">=<\/span><span class=\"atv\">\"https:\/\/www.facebook.com\/FacebookDevelopers\/posts\/10151471074398553\"<\/span>\r\n    <span class=\"atn\">data-width<\/span><span class=\"pun\">=<\/span><span class=\"atv\">\"500\"<\/span>\r\n    <span class=\"atn\">data-allowfullscreen<\/span><span class=\"pun\">=<\/span><span class=\"atv\">\"true\"<\/span><span class=\"tag\">&gt;&lt;\/div&gt;<\/span>\r\n<span class=\"tag\">&lt;\/body&gt;<\/span>\r\n<span class=\"tag\">&lt;\/html&gt;\r\n\r\n<\/span><\/pre>\n<p><img loading=\"lazy\" class=\"alignnone size-full\" src=\"https:\/\/scontent.fpnq5-1.fna.fbcdn.net\/v\/t39.2178-6\/11057090_869551563086172_830482901_n.jpg?_nc_cat=102&amp;_nc_sid=5ca315&amp;_nc_ohc=LHQ4xKlZf7YAX-s_tWV&amp;_nc_ht=scontent.fpnq5-1.fna&amp;oh=9edb65dc19f6c1c3cee22e1d4fcbca82&amp;oe=5F4ED760\" width=\"1298\" height=\"900\" \/><\/p>\n<p>Any questions, please do let us know through comments! If you like the post make sure to share it using the share button below.<\/p>\n<p>&nbsp;<\/p>\n<div class=\"likebtn_container\" style=\"\"><!-- LikeBtn.com BEGIN --><span class=\"likebtn-wrapper\"  data-identifier=\"post_997\"  data-site_id=\"63451ab7943ec9522b1d4658\"  data-theme=\"custom\"  data-btn_size=\"35\"  data-icon_l=\"thmb7-u\"  data-icon_d=\"thmb7-d\"  data-icon_size=\"20\"  data-icon_l_c=\"#81d742\"  data-icon_d_c=\"#dd3333\"  data-brdr_c=\"#1e73be\"  data-f_size=\"18\"  data-f_family=\"Comic Sans MS\"  data-ef_voting=\"wobble\"  data-show_like_label=\"false\"  data-share_size=\"large\"  data-style=\"\"  data-unlike_allowed=\"\"  data-show_copyright=\"\"  data-item_url=\"https:\/\/randomtools.io\/blog\/how-to-embed-a-facebook-live-video-on-website\/\"  data-item_title=\"how to embed a Facebook live video on website\"  data-item_image=\"\/blog\/wp-content\/uploads\/2020\/03\/image_2020_03_31T06_23_01_145Z.png\"  data-item_date=\"2020-08-04T06:46:04+00:00\"  data-engine=\"WordPress\"  data-plugin_v=\"2.6.46\"  data-prx=\"\/blog\/wp-admin\/admin-ajax.php?action=likebtn_prx\"  data-event_handler=\"likebtn_eh\" ><\/span><!-- LikeBtn.com END --><\/div>","protected":false},"excerpt":{"rendered":"<p>Facebook Live is a great way to engage with your audience, It is possible you may want to\u00a0embed the live video to your website or<\/p>\n<div class=\"likebtn_container\" style=\"\"><!-- LikeBtn.com BEGIN --><span class=\"likebtn-wrapper\"  data-identifier=\"post_997\"  data-site_id=\"63451ab7943ec9522b1d4658\"  data-theme=\"custom\"  data-btn_size=\"35\"  data-icon_l=\"thmb7-u\"  data-icon_d=\"thmb7-d\"  data-icon_size=\"20\"  data-icon_l_c=\"#81d742\"  data-icon_d_c=\"#dd3333\"  data-brdr_c=\"#1e73be\"  data-f_size=\"18\"  data-f_family=\"Comic Sans MS\"  data-ef_voting=\"wobble\"  data-show_like_label=\"false\"  data-share_size=\"large\"  data-style=\"\"  data-unlike_allowed=\"\"  data-show_copyright=\"\"  data-item_url=\"https:\/\/randomtools.io\/blog\/how-to-embed-a-facebook-live-video-on-website\/\"  data-item_title=\"how to embed a Facebook live video on website\"  data-item_image=\"\/blog\/wp-content\/uploads\/2020\/03\/image_2020_03_31T06_23_01_145Z.png\"  data-item_date=\"2020-08-04T06:46:04+00:00\"  data-engine=\"WordPress\"  data-plugin_v=\"2.6.46\"  data-prx=\"\/blog\/wp-admin\/admin-ajax.php?action=likebtn_prx\"  data-event_handler=\"likebtn_eh\" ><\/span><!-- LikeBtn.com END --><\/div>","protected":false},"author":1,"featured_media":945,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[7],"tags":[95,94,96],"_links":{"self":[{"href":"https:\/\/randomtools.io\/blog\/wp-json\/wp\/v2\/posts\/997"}],"collection":[{"href":"https:\/\/randomtools.io\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/randomtools.io\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/randomtools.io\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/randomtools.io\/blog\/wp-json\/wp\/v2\/comments?post=997"}],"version-history":[{"count":3,"href":"https:\/\/randomtools.io\/blog\/wp-json\/wp\/v2\/posts\/997\/revisions"}],"predecessor-version":[{"id":1000,"href":"https:\/\/randomtools.io\/blog\/wp-json\/wp\/v2\/posts\/997\/revisions\/1000"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/randomtools.io\/blog\/wp-json\/wp\/v2\/media\/945"}],"wp:attachment":[{"href":"https:\/\/randomtools.io\/blog\/wp-json\/wp\/v2\/media?parent=997"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/randomtools.io\/blog\/wp-json\/wp\/v2\/categories?post=997"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/randomtools.io\/blog\/wp-json\/wp\/v2\/tags?post=997"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}