Social network like Facebook often show the first picture of a page as an illustration of the shared link.
Banners, due to their shape, might not be good illustrations.
Maybe there is a way to prevent the banner being used as an illustration if other images on the page fit better.
Description
Details
Project | Branch | Lines +/- | Subject | |
---|---|---|---|---|
mediawiki/extensions/PageImages | master | +19 -1 | Add PageImage OpenGraph tag |
Event Timeline
For instance my website http://CmisSync.com uses
<meta property="og:image" content="http://cmissync.com/images/og_img.png" />
to tell Facebook what image it should use for previews.
I am not sure og:image is the right thing for us, so a look at http://ogp.me/ and https://developers.facebook.com/docs/sharing/best-practices is advised.
We should use og:image for this.
Note this is a bigger problem outside the scope of GSoc - see bug T32113
Change 334789 had a related patch set uploaded (by Ladsgroup):
Add PageImage OpenGraph tag
Comparing https://developers.facebook.com/tools/debug/sharing/?q=https%3A%2F%2Fen.m.wikivoyage.beta.wmflabs.org%2Fwiki%2FParis with https://developers.facebook.com/tools/debug/sharing/?q=https%3A%2F%2Fen.m.wikivoyage.org%2Fwiki%2FParis the first version has an image that's not the banner and the second has no banner. This will be deployed over the next 2 weeks.