Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

og:video and streaming on Facebook


I'm trying to get vids to embed in Facebook and feel like I'm close but it's just not getting there. I have a JW5 Flash player, and here's my meta code, which is generated by PHP/Smarty:

<meta property="og:type" content="movie"/>
<meta property="og:video" content="https://www.chicagomag.com/theme_overrides/Respond/js/jwplayer/player.swf?file=http://media.chicagomag.com/videos/restaurants/restaurant-elizabeth.mp4&autostart=true">
<meta property="og:video:height" content="290" />
<meta property="og:video:width" content="480" />
<meta property="og:video:type" content="application/x-shockwave-flash" />

But when I check via Facebook lint, Facebook seems to choke on the querystring.

{
"url": "https:\/\/www.chicagomag.com\/theme_overrides\/Respond\/js\/jwplayer\/player.swf?file=http\u00253A\u00252F\u00252Fmedia.chicagomag.com\u00252Fvideos\u00252Frestaurants\u00252Frestaurant-elizabeth.mp4&autostart=true",
"type": "application\/x-shockwave-flash",
"width": 480,
"height": 290
}


Should I be encoding the filename somehow?

7 Community Answers

Ethan Feldman

JW Player Support Agent  
0 rated :

Yes, the file name should be encoded as well – http://www.jwplayer.com/blog/publish-your-videos-to-facebook-with-a-jw-player/

lseemann

User  
0 rated :

Ah, I see how it should be encoded now, and it works. Thanks!

Ethan Feldman

JW Player Support Agent  
0 rated :

Np!

lseemann

User  
0 rated :

Follow-up: Can you direct me to an explainer on how to pass VAST tags or other parameters to the player? Would love to have preroll show up in Facebook.

Ethan Feldman

JW Player Support Agent  
0 rated :

I’m afraid since Fb embedding uses JW5, it is not possible to put ads in FB.

lseemann

User  
0 rated :

Rats. OK, thanks. Would be excellent to have this capability in the future.

Ethan Feldman

JW Player Support Agent  
0 rated :

Np

This question has received the maximum number of answers.