#3850 - Check new theme image names for Open Graph images
| Identifier | #3850 |
|---|---|
| Issue type | Feature request or suggestion |
| Title | Check new theme image names for Open Graph images |
| Status | Completed |
| Handling member | Chris Graham |
| Addon | core |
| Description | Currently we hard-code Open Graph to use particular inbuilt theme images as a fallback, when there's no content-centric image.
In v11 this is currently going to result in no default, because .svg is not allowed on Facebook. It would be good to support a number of theme image names, that probably won't exist out-of-the-box, and if those don't exist, use the current hard-coded theme images. Or, maybe we just make these images by somehow converting current .svg files to them in a build script. |
| Steps to reproduce | |
| Funded? | No |
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".


Comments
Same as Facebook Open Graph except for:-
<meta name="twitter:card" content="image">
<meta name="twitter:site" content="@agektmr">
Potentially also:-
<meta name="twitter:creator" content="@yuwskei" />
It does require domain approval @ https://cards-dev.twitter.com/validator
This was hard, a lot of changes!
1) Added support for making picture fields take priority, via a new field option
2) Changed hard-coded <img> tag scanning for forum posts to work via a symbol (METADATA_IMAGE_EXTRACT), and deployed this in a number of content templates - meaning it is now more configurable
3) Smarter filtering out of invalid metadata, so valid fallbacks can take precedence; including applied file extension check for specified Open Graph images
4) Added minimum image size check for Open Graph images also
5) Made it easier to override images used for different content types in HTML_HEAD.tpl
6) Reworked documentation, merged explanations from 2 different tutorials together, and rewritten to be much clearer
7) Written better explanations for how to override for different content types, and how to just have a flat choice of the Open Graph image
8) Added "twitter:card" property to HTML_HEAD, setting to summary_large_image for gallery images
9) Documented Twitter Cards properly
I can see a potential for people wanting to use category images for the Open Graph image. For example, an Announcements image for an announcements news post. This has overhead, so isn't implemented by default. People can achieve it via templating though. They'd need to set the image metadata based on category ID.