Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
352 views
in Technique[技术] by (71.8m points)

html - WhatsApp/Facebook link preview not working (but seems scraped correctly)

The Facebook/WhatsApp preview isn't working for one website I have and I'm currently at a loss of what could be missing. I already tried everything on other posts.

Besides title, description, favicon and x-ua-compatible I currently have the following OG properties:

  <meta property="og:url" content="https://markas.pt" />
  <meta
    property="og:title"
    content="markas | plataforma de marcas portuguesas"
  />
  <meta
    property="og:description"
    content="Plataforma de marcas Portuguesas com dados abertos para o objetivo de divulga??o e promo??o do que é nacional"
  />
  <meta property="og:site_name" content="markas.pt" />
  <meta property="og:image" content="http://www.markas.pt/ogimage_redux.jpg" />
  <meta
    property="og:image:secure_url"
    content="https://www.markas.pt/ogimage_redux.jpg"
  />
  <meta property="og:image:width" content="256" />
  <meta property="og:image:height" content="256" />
  <meta property="og:image:alt" content="markas.pt" />
  <meta property="og:image:type" content="image/jpeg" />
  <meta property="og:type" content="website" />
  <meta property="og:locale" content="pt_PT" />

Here's what I've tried:

  • Change og:image to 1200x630 resolution and/or in PNG
  • Remove og:image:secure_url and other og:image subproperties
  • Add "itemprop=image" to og:image property

It seems to be correctly scraped by Facebook as the sharing debugger shows the preview. But in WhatsApp/Facebook still doesn't show up. I only have a warning for lacking fb:app_id but I know of other websites that don't have it and have link preview.

Anyone knows what could be missing?

question from:https://stackoverflow.com/questions/65849820/whatsapp-facebook-link-preview-not-working-but-seems-scraped-correctly

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...