Hi, I was trying to make my own OG tags for my website using HTML, I put these codes in the index.html file and in the head section of the page, here’s what I did:
<head>
<title>My Title</title>
<meta property="og:title" content="Title">
<meta property="og:description" content="description">
<meta property="og:image" content="my-image.png">
<meta property="og:image:width" content="1920">
<meta property="og:image:height" content="1080">
<meta property="og:url" content="url">
<meta property="og:site_name" content="Site-name">
<meta property="og:type" content="website">
</head>
But it didn’t work I didn’t get any of the tags for my webpage, any help please?
thank you <3
Hey @OsamaHJT,
It looks like something is wrong with your OG markup. Please try to post your URL to this debugger: Debugger. It will show all the errors and warnings and you can further fix them by yourself.
If the issue persists,
Try adding the prefix to the html tag as an attribute: prefix="og: http://ogp.me/ns#"
yeah I know I used that it tells me like:
The ‘og:title’ property is required, but not present.
OR
The ‘og:url’ property should be explicitly provided, even if a value can be inferred from other tags.
and I really didn’t know what to do so I came here and asked.
Thank you anyway<3
Hey there,
As the error signifies, the you must provide valid URL and title is a must and required.
hey, yeah bro I know about that I have all my links and titles etc in the website’s HTML I just removed them from the post so it doesn’t get messy, I’m not sure what is wrong that prevents facebook from getting my og tags