Support #13876
openmeta property og:
0%
Description
Hello,
I managed to get the links to my site showing a proper summary of my site in Telegram by using the og: meta headers like this:
addMetaHeader(Wt::MetaHeaderType::Property, "og:site_name", "sitename"));
addMetaHeader(Wt::MetaHeaderType::Property, "og:locale", "en_US");
addMetaHeader(Wt::MetaHeaderType::Property, "og:description","Very good site"));
addMetaHeader(Wt::MetaHeaderType::Property, "og:url", "www.site.com");
addMetaHeader(Wt::MetaHeaderType::Property, "og:image", "image.jpg"));
But Whatsapp only shows a plain link. Wt does not add the meta tags when a user normally accesses the site with a browser. I have been using curl to check that the meta tags are there for the bots like this and the tags are there:
curl -H "User-Agent: Googlebot/2.1" http://www.site.com/
Where could the problem be? Is Whatsapp faulty somehow or are the meta tags missing when Whatsapp gets the site (however that is done)?
Updated by Axel Sjöberg 3 months ago
I checked 3 of the companies listed on the bottom of https://www.webtoolkit.eu/wt. Intel, Philips and SAP all show the meta tags added with Wt::WApplication::addMetaHeader even the page is visited by a human with a browser. How can I get this behaviour?