pequeno Posted May 18, 2020 Posted May 18, 2020 I need to add "og:image" to all posts. How can I do it? shiobi 1
opentype Posted May 18, 2020 Posted May 18, 2020 You mean the site logo or a topic-specific image? For the latter ☞ https://invisioncommunity.com/files/file/8992-og-image-for-forum-topics/
pequeno Posted May 18, 2020 Author Posted May 18, 2020 Hello @opentype I don't know . The company that inserts advertising on my site, told me that I need to put og:image in every post.
opentype Posted May 18, 2020 Posted May 18, 2020 That’s a weird request I don’t understand without further information. pequeno 1
pequeno Posted May 18, 2020 Author Posted May 18, 2020 It is the only information that has been transmitted to me. I will ask for more explanations.
DawPi Posted May 18, 2020 Posted May 18, 2020 If it should an attachment image, let me know. I did such mod:
Pescao6 Posted May 18, 2020 Posted May 18, 2020 7 hours ago, pequeno said: I need to add "og:image" to all posts. How can I do it? @pequeno You don't need to use the og:image meta tag to add an image to all posts. You can upload a share image on AdminCP > Customization > Icons & Logos > Default share images. Note: You will need to clear your site's cache by going to the AdminCP > System > Support > Something isn't working correctly. And if you're using a CDN, which you should because CloudFlare is free if you don't want to pay for one like SiteLock or Sucuri, you will also need to clear the CDN cache. You will need to wait at least 2 minutes for the site's cache to get fully cleared before testing if the changes were applied. You can test the share image by using the Facebook Sharing Debugger or Discord. You can also check how your site will get displayed on Twitter with the Twitter Card Validator, but I didn't need to add any Twitter tags. Don't freak out if it's been 5 minutes and it still isn't showing. I've seen cases where I know I did everything correctly and because I had recently tested on Discord, apparently Discord cached my last shared URL so I had to wait like 15 minutes. Obviously if it's been 1 hour and it still hasn't shown, you've done something wrong like you might be missing other meta tags. To add your other meta tags, go to the AdminCP > System > Site Promotion > Search Engine Optimization > Meta Tags. Here is a screenshot of the ones I'm currently using: Same as with changing any Icons & Logos, you will need to clear the site's and CDN cache for the changes to get applied. 6 hours ago, pequeno said: The company that inserts advertising on my site told me that I need to put og:image in every post. You could technically create an og:image tag for every post under your Meta Tags using the Live Meta Tag Editor, but that's a lot of manual work so I'd use the plugin @opentype recommended if that's what you wanted. pequeno 1
Sheffielder Posted May 19, 2020 Posted May 19, 2020 It's absolutely mindblowing that all these years in of Invision Forums being a thing, that the og image for topics hasn't been integrated as standard instead we get a sharing image? Madness
Pescao6 Posted May 19, 2020 Posted May 19, 2020 @Sheffielder The share image is an og:image if you look at your page source. 🙄 🤓 Invision has some pretty naming conventions for things.
Recommended Posts