Forum Moderators: phranque

Message Too Old, No Replies

Embed a FB video on your website

         

csdude55

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

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



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?

engine

9:11 am on Oct 9, 2017 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



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?

csdude55

9:25 am on Oct 9, 2017 (gmt 0)

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



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.

engine

9:48 am on Oct 9, 2017 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Aha, restrictions, eh. I had a feeling it was something like that.
Glad you got it sorted.

keyplyr

10:18 am on Oct 9, 2017 (gmt 0)

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



Another enigma solved.

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