Opened 9 years ago

Closed 9 years ago

#1375 closed defect (bug) (fixed)

When video is shared in Facebook, only Flash player is available

Reported by: vloo's profile vloo Owned by: iandunn's profile iandunn
Milestone: Priority: normal
Component: Keywords:


  1. Open a video on and play it => all is good.
  2. Share the link in Facebook => video can't be played as it asks for Flash (which is bad).

Attachments (2)

facebook-shared-video-with-flash.png (45.6 KB) - added by vloo 9 years ago.
meta-1375.diff (1.6 KB) - added by kraftbj 9 years ago.
Set og:video tags to mp4

Download all attachments as: .zip

Change History (7)

#1 @Otto42
9 years ago

The video passed via OpenGraph is indeed a flash video. Example:

<meta property="og:video:type" content="application/x-shockwave-flash" />
<meta property="og:video" content="" />
<meta property="og:video:secure_url" content="" />

This is one of the types Facebook accepts.

They also accept video/mp4, which we should consider using instead, since that is also available:

<meta name="twitter:player:stream" content="" />

#2 @kraftbj
9 years ago

This is on the side. I've opened a bug report at so we can update the og:video tags that we add.

For the sake of stating, it looks like the Twitter tags are theme-specific for the theme while FB is stock

#3 @Otto42
9 years ago

Jetpack's OpenGraph tags are easily overrideable, if we'd prefer to do that. The same theme code can do it easily, since it already knows the mp4 URL.

All we have to do is to add a filter to jetpack_open_graph_tags.

9 years ago

Set og:video tags to mp4

#4 @kraftbj
9 years ago

meta-1375.diff overrides the og:video tags to set mp4 and adds proper mp4 URLs.

#5 @iandunn
9 years ago

  • Owner set to iandunn
  • Resolution set to fixed
  • Status changed from new to closed

In 2038: Embed MP4 videos in Facebook posts instead of Flash.

Fixes #1375
Props kraftbj

Note: See TracTickets for help on using tickets.