You'll need to add some RDFa meta data to the header of your pages which contain video. For Facebook specifically, you'll need to add a
<link rel="image_src" href="/URL/TO/VIDEO_THUMBNAIL.jpg" /> tag to indicate the video thumbnail, and a
<link rel="video_src" href="/URL/TO/PLAY/VIDEO" /> to indicate the video player. Note that the
video_src tag should refer to a URL which will actually play the video, not the video source file itself. So if you use a SWF to play the video, and the video ID is 123, that URL should be something like
Those are the only two required variables, for Facebook. Other optional properties, which should be specified in
meta tags include:
Also note, it may take a bit of time after successfully adding these tags for Facebook to actually crawl your pages and start showing the video snippets.
There are additional ways to markup video properly in HTML pages. You can read more about these formats from Google.
Also, for testing your markup, the Facebook Debugger will likely come in very handy.