Welcome to WebmasterWorld Guest from 35.171.183.163

Forum Moderators: phranque

Message Too Old, No Replies

Embed a FB video on your website

     
8:51 am on Oct 9, 2017 (gmt 0)

Senior Member

WebmasterWorld Senior Member 5+ Year Member Top Contributors Of The Month

joined:Mar 15, 2013
posts: 1116
votes: 109


Does anyone know how to embed a video from FB on your own site now?

My page is public, so that's not the issue. I tried the Code Configurator here:

[developers.facebook.com...]

I also tried the old format of embedding the video link in an iFrame:

<iframe src="https://www.facebook.com/plugins/video.php?href=https%3A%2F%2Fwww.facebook.com%2FExample%2Fvideos%2F123456789%2F%3Ftype%3D3&width=500&show_text=false&height=280&appId" width="500" height="280" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowTransparency="true"></iframe>


And the other format of using their SDK:


<div id="fb-root"></div>
<script>
(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s);
js.id = id;
js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.3";
fjs.parentNode.insertBefore(js, fjs);
}
(document, 'script', 'facebook-jssdk')
);
</script>
<div class="fb-video" data-allowfullscreen="1" data-href="/Example/videos/123456789/"></div>


All three just give me an image that says:

Unavailable
This video can't be embedded.

Is there a newer way that I'm supposed to do this?
9:11 am on Oct 9, 2017 (gmt 0)

Administrator from GB 

WebmasterWorld Administrator engine is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:May 9, 2000
posts:26182
votes: 968


Could the video you're experimenting with me protected with DRM, or rights selected by the user? In other words, finding an unprotected video to experiment with?
9:25 am on Oct 9, 2017 (gmt 0)

Senior Member

WebmasterWorld Senior Member 5+ Year Member Top Contributors Of The Month

joined:Mar 15, 2013
posts:1116
votes: 109


Sorry, I figured it out. My page was set to only be visible to people in the United States. Removing that made the video work.
9:48 am on Oct 9, 2017 (gmt 0)

Administrator from GB 

WebmasterWorld Administrator engine is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:May 9, 2000
posts:26182
votes: 968


Aha, restrictions, eh. I had a feeling it was something like that.
Glad you got it sorted.
10:18 am on Oct 9, 2017 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member keyplyr is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Sept 26, 2001
posts:12913
votes: 893


Another enigma solved.

You haven't lived until you've blocked yourself from all server ports.