Technical Details
Forum version : #ModernBB
Position : Founder
Concerned browser(s) : Google Chrome
Screenshot of problem : https://i.ibb.co/f1Fkqbb/forumdisplay.jpg
Who the problem concerns : A few members
Forum link : https://vnrpg.forumeiros.com/t2-testing-discord-ogimage-preview
Description of problem
I'm trying to have the first image of the thread/topic be displayed on the link preview of discord.That's the default behavior of blogs like wordpress and I'd like to have that behavior on this forum threads as well.
Discord will always use Open Graph meta tags. But the "og:image" meta tag for this forum seems to be static.
The tag in question is automatically generated on the templates->general->overall_header with the {META_FB_LIKE} line and I don't have control over that as far as I know.
I've tried making a javascript to change it but that did not work. Discord will not execute the javascript as it only needs the html to find the meta tags.
Is there a setting I'm missing or any way to do this on forummotion?
PS: I've also saw some plugins that claims to do exactly this like https://github.com/LotusJeff/socialshare
But that seems like is for self-hosted phpbb and requires access to add plugins.