No default image displayed for og:image
Permalink Browser Info Environment
Hello
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?
Thanks
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?
Thanks
Type: | Pre-Sale |
---|---|
Status: | In Progress |
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.