I’m trying to use dynamic OG meta tags and things aren’t working so well… the OG data is not appearing when the page url is shared in an app like whatsapp.
Try this structure for the Facebook Meta Tags. Replace the dmx content to match your dynamic links. For the images to appear in the messages when shared in apps like WhatsApp, the image url has to be defined with a full path to the image with width & height. I have used image size as recommended for an advertisement image.
There’s no guarantee the third-party services you use attempt to parse the page with JavaScript enabled as that’s a costly operation. dmx-bind is only valid when JavaScript is enabled
You need to use server-side binding, example for NodeJS here:
Server-side binding makes so the HTML that comes out of your server already has those meta-tags filled with data, instead of filling them at run-time through dmx-bind
Server side rendering as in nodejs is not available for PHP.
You need to add such a code by hand or use static values there instead, if you want to share them on Facebook, Whatsapp or any platform that can’t render them.