No default image displayed for og:image

Permalink Browser Info Environment

Thanks for developing this add-on.

I have one issue. I've set the default image for og:image in the dashboard, but it does not appear on any page. I can add the og:image page attribute to a page and select a specific image, and that works as expected.

How can the default og:image be displayed?


Type: Pre-Sale
Status: In Progress
View Replies:
blueatlas replied on at Permalink Reply
It turns out that the og:image meta tags will not be inserted unless the image is at least 200px in width and height. On line #87 of src/Html/OpenGraphTags.php:

if ($og_image_width >= 200 && $og_image_height >= 200) {
$v->addHeaderAsset((string)OpenGraph::create('og:image', $og_image_url));
$v->addHeaderAsset((string)OpenGraph::create('og:image:width', $og_image_width));
$v->addHeaderAsset((string)OpenGraph::create('og:image:height', $og_image_height));

Uploading a correctly sized image resolve this issue.

concrete5 Environment Information

Concrete5 v5.7.5.9

Browser User-Agent String

Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.