Open Graph image not working

My Open Graph image is not showing up in LinkedIn posts.

The image lives inside my assets > images folder, and is linked to from this code in my <head> code

<meta property="og:image" content="<?= url('assets/images/advocate-ethical-design-og.png') ?>">

Should the Open Graph image go in the root folder (along with my favicon)? If so how would I link to it?

<meta property="og:image" content="<?= url('/advocate-ethical-design-og.png') ?>">

No, the assets folder as a publicly accessible folder is the right place.

I can see the preview image if I paste a link from your site here.

Weird, you’re right, I can see the preview image (Open Graph image) – but not in LinkedIn.

Would LinkedIn cache preview images – and so that is why it is not displaying?

I don’t have the slightest idea what LinkedIn does or what their requirements regarding images are.

Yeah, fair enough!

Thanks again, I’ll have a Google and if I find anything I’ll post a reply

Okay,

Linkedin caches link preview content for 7 days. You have to do the following to clear Linkedin Preview cache:

Step 1: Visit Post Inspector

When I inspect my website I get a 403 error. Don’t understand why.