Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

required property 'og:title' of type 'string' was not provided

When I debug my webpage in the facebook linter, it keeps showing the warning:

"required property 'og:title' of type 'string' was not provided"

I have read the suggestions on SO and have tried:

  • no gzip compression

  • re scrape on the fb debugger

  • building new test page with only Facebook og meta tags

but the warning is the same.

The test page code is:

<!DOCTYPE html>
<html  prefix="og: http://ogp.me/ns#" >
<head>
   <title>testing page</title>
     <meta property="og:title" content="testing page og title" />  
     <meta property="og:type" content="article" />
     <meta property="og:url" content="https://www.skinvac.com/test.html" />
     <meta property="og:image" content="https://www.skinvac.com/test-image.png" />
     <meta property="og:description" content="testing page og description " />

      <meta name= "keywords" content="test " />
      <meta name= "description" content="test" />
</head>
    <body>
      <h1>test</h1>     
      <img src="test-image.png">
    </body>
</html>

The debug results can be seen here facebook share debugger result

There is a warning of: "The 'og:type' property is required, but not present."

But the "og:title" property is in the header tags.

How can I fix this please?

Thank you

like image 429
theMouse Avatar asked Feb 04 '23 12:02

theMouse


1 Answers

You are using https, but you do not have a valid SSL certificate. Replace https with http in your code and test with the http link instead.

like image 137
andyrandy Avatar answered Feb 08 '23 23:02

andyrandy