How whatsapp messaging reads website url like the facebook open graph protocol?

15,817

You can just use the existing OpenGraph data for this. You will have to inject tags like

<meta property="og:title" content="I'm going to Joy of Coding 2016 :)">
<meta property="og:description" content="Fancy going to Joy of Coding 2016 as well? Buy your tickets now!">
<meta property="og:url" content="https://shop.inventid.nl/132">
<meta property="og:image" content="https://customerimages.inventid.nl/c8737a37-9297-4a29-a969-e20adc31efb4_1400_800.jpg">

Remember that if you have a pure Javascript application, you might have to resort to tools such as Prerender (prerender.io) to present correct data to crawlers (also Facebook or Twitter for example)

More information about opengraph data can be found on the website http://ogp.me/

Share:
15,817

Related videos on Youtube

Mahmoud Zakaria
Author by

Mahmoud Zakaria

I have a lot of ideas but not arranged yet ;)

Updated on June 04, 2022

Comments

  • Mahmoud Zakaria
    Mahmoud Zakaria almost 2 years

    I want to make like Facebook og meta but for whatsapp messaging for my website like attached screenshot, as I looked into google's meta tags and found this role attribute but found nothing that I can use to accomplish it.

    How could I achieve this?

    Here is what I referred.

    <meta content="images/imagery" item prop="image">

    whats app messaging example

  • Rogier Slag
    Rogier Slag over 6 years
    If you have a page based on Javascript you should use a tool like prerender.io to make it work. Do you have an example URL?
  • Arnold Schrijver
    Arnold Schrijver over 5 years
    Note: There are updates in the best to add metadata, which are described here: stackoverflow.com/questions/25100917/…