Project

General

Profile

Actions

Support #13876

open

meta property og:

Added by Axel Sjöberg about 1 month ago. Updated 22 days ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
07/29/2025
Due date:
% Done:

0%

Estimated time:

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)?

Actions #1

Updated by Axel Sjöberg 22 days 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?

Actions

Also available in: Atom PDF