Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I get an iframe-embedded HTML5 video to embed in a Facebook news-feed?

I know how to make a shared URL show an embedded Flash video in the Facebook news-feed. The <og:video> tags are straight-forward but the examples are only for Flash-video.

I've read that you can set og:video:type to text/html for html5 embeds, but it doesn't work for me. Facebook just opens the video-player in a new window instead of inline.

I'm using the following:

<meta property="og:video" content="https://url_to_video_player_for_iframe" />
<meta property="og:video:width" content="640" />
<meta property="og:video:height" content="392" />
<meta property="og:video:type" content="text/html" />

What og:video:type do I need to get the player inline? Or is there another meta tag necessary?

like image 967
ice cream Avatar asked Nov 13 '22 15:11

ice cream


1 Answers

I did this once for a client you need to apply to facebook to let them allow you to put videos inline into wall streams. you provide them with details and they check you out then enable this for your domain (or don't) I think it's to stop adult content etc.

like image 113
Alex Avatar answered Feb 09 '23 00:02

Alex