Last modified: 2014-02-14 13:21:17 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T33338, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 31338 - Export file thumbnail, video preview via Open Graph meta elements as Facebook posting helper
Export file thumbnail, video preview via Open Graph meta elements as Facebook...
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
Extensions requests (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
https://developers.facebook.com/docs/...
:
Depends on: 25862
Blocks: 54829
  Show dependency treegraph
 
Reported: 2011-10-04 00:41 UTC by Brion Vibber
Modified: 2014-02-14 13:21 UTC (History)
6 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Brion Vibber 2011-10-04 00:41:55 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.
Comment 1 Leonard Wallentin 2012-12-26 20:46:23 UTC
This extension provides some og tags: http://www.mediawiki.org/wiki/Extension:OpenGraphMeta

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links