How do I publish my video to facebook?

Posting your self hosted video to the social sites is fairly straightforward, they’re looking for metadata before they ingest it, which I’ll go over now:


Whenever someone publishes a post with a link to their News Feed, Facebook scans that page for metadata about that page. By including some specific metadata in the of your page, you can instruct Facebook to embed your JW Player with your content in the News Feed. However, this also means that you’ll need a unique web page with this metadata for each piece of content.




When scanning a page, Facebook examines the tags. Specifically, it looks at Open Graph tags – those with with an og prefix to the property attribute – and uses the data contained in the content attribute. Facebook video must meet their precise open graph specs.

An Example:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<html>
  <head>
    <meta property="og:type" content="movie" /> 
    <meta property="og:video:height" content="260" /> 
    <meta property="og:video:width" content="420" /> 
    <meta property="og:video:type" content="application/x-shockwave-flash" />
    <meta property="og:title" content="Big Buck Bunny" /> 
    <meta property="og:description" content="Big Buck Bunny is a short animated film by the Blender Institute, part of the Blender Foundation." />
    <meta property="og:image" content="http://www.example.com/bunny.png" />
    <meta property="og:video" content="http://www.example.com/jwplayer/player.swf?file=http%3A%2F%2Fwww.example.com%2Fbunny.flv&autostart=true" /> 
  </head>
  <body></body>
</html>

og:type – The type of content described by this page, should always be “movie”.
og:video:height / og:video:width – the height and width (in pixels) of your video player will occupy within the news feed.
og:video:type – The type of video playback you’d like to use, should always be “application/x-shockwave-flash”.
og:title / og:description – the title and description of your video. Note that the title attribute is different from the HTML tag, and it will not show up in the browser’s title bar.
og:image – the poster image. This is what will be displayed on the viewer’s wall with the play button over it.
og:video – the URL to your JW Player, with the configuration passed in as part of the URL string.

0