Last modified: 2014-02-14 13:21:17 UTC
Similar to bug 25854 (oEmbed export/discovery), it should be useful to expose images and video files via Open Graph meta tags, which tools like Facebook can pick up when someone posts a link. For images and video, exposing a thumbnail at some defaultish default width/height should help: <meta property="og:image" content="http://ia.media-imdb.com/rock.jpg"/> We'll have to pick a default size, I suppose; per docs should be bigger than 50x50, with maximum aspect ratio of 3:1 (???) For video, there are some examples of multi-format info: <html xmlns:og="http://ogp.me/ns#"> <head> ... [REQUIRED TAGS] <meta property="og:video" content="http://example.com/awesome.swf" /> <meta property="og:video:height" content="640" /> <meta property="og:video:width" content="385" /> <meta property="og:video:type" content="application/x-shockwave-flash" /> <meta property="og:video" content="http://example.com/html5.mp4" /> <meta property="og:video:type" content="video/mp4" /> <meta property="og:video" content="http://example.com/fallback.vid" /> <meta property="og:video:type" content="text/html" /> ... </head> however if we're not generating H.264 .mp4 output for videos, we might be stuck with just a link if it doesn't happen to accept WebM/ogg; it kinda looks like that fallback is for linking not iframe embedding. Audio files seem to be handled similar to videos; depending on what clients claim to support they may or may not actually take an ogg vorbis file, but mp3 is specifically called out as supported. Some additional file metadata such as location could probably also be extracted and exposed, if necessary/desired.
This extension provides some og tags: http://www.mediawiki.org/wiki/Extension:OpenGraphMeta