Open graph protocol not working in whatsapp

筅森魡賤 提交于 2019-12-25 12:45:19

问题


I Follow the below open graph meta tags to show thumbnail on sharing. It works perfectly in facebook but not in whatsapp

  <meta property="og:site_name" content="Hahaa haa">
  <meta property="og:title" content="Haaha haa - Music Player" />
  <meta property="og:url" content="http://13.126.57.106/aiyoapp/public/" />
  <meta property="og:description" content="Haaha haa Music Player is used to share">
  <meta property="og:image" itemprop="image"  content="http://13.126.57.106/aiyoapp/public/images/ha_thumb.png">
  <meta property="og:type" content="website" />

回答1:


I have had the same problem, everything worked fine in any opengraph testing tool and in the social sites themself's: facebook, twitter, ok, vk but in whatsapp & telegram not.

So after a lot of research, the problem was in our virtual site firewall that protects from site crawling by many logics, a couple of them is IP and User-Agent. The whatsapp & telegram are pinging sites to fetch og data are not throw their servers like social sites, but through your mobile operator's dynamic IP, but the user-agent is of the messenger itself, and it was in our automatically generated blacklist.

Check if you don't ban access to your site by theirs user-agents string that contains: WhatsApp/2.17.395 A or TelegramBot (like TwitterBot)

Wish it helped.



来源:https://stackoverflow.com/questions/47236739/open-graph-protocol-not-working-in-whatsapp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!