# Missing Open Graph og:type

**URL:** <https://meta.discourse.org/t/missing-open-graph-og-type/177360>\
**Category:** Feature\
**Created:** [January 26, 2021, 8:28pm UTC](https://meta.discourse.org/t/missing-open-graph-og-type/177360 "2021-01-26T20:28:17Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![bifftannen](https://avatars.discourse-cdn.com/v4/letter/b/74df32/32.png) [@bifftannen](https://meta.discourse.org/u/bifftannen)\
**Post date:** [January 26, 2021, 8:28pm UTC](https://meta.discourse.org/t/missing-open-graph-og-type/177360/1 "2021-01-26T20:28:17Z")

</div>

Hi,

When checking the Open Graph validation for the site, it seems to be missing the “og:type” field.

How can we add this?

Thanks  
Peter

---

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [January 26, 2021, 9:41pm UTC](https://meta.discourse.org/t/missing-open-graph-og-type/177360/2 "2021-01-26T21:41:05Z")

</div>

Per the spec a missing type should be parsed as `og:type=website`, which is what we would end up using.

> Any non-marked up webpage should be treated as `og:type` website.

But I guess it doesn’t hurt to be specific? #pr-welcome

---

<div class="post-metadata">

**Author:** ![bifftannen](https://avatars.discourse-cdn.com/v4/letter/b/74df32/32.png) [@bifftannen](https://meta.discourse.org/u/bifftannen)\
**Post date:** [June 9, 2021, 6:40am UTC](https://meta.discourse.org/t/missing-open-graph-og-type/177360/3 "2021-06-09T06:40:26Z")

</div>

Do you have some sort of roadmap, where we can see when this is planned?

I feel like this is a very minor thing, but something that would have a large impact for us.

Thanks  
Peter

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [June 9, 2021, 8:25pm UTC](https://meta.discourse.org/t/missing-open-graph-og-type/177360/4 "2021-06-09T20:25:40Z")

</div>

Can you explain exactly how it would have a large impact? If the value is missing, the default is correct, per above. Specifying the value of something that is already valid by default doesn’t seem like a good use of our engineering time.

---

<div class="post-metadata">

**Author:** ![bifftannen](https://avatars.discourse-cdn.com/v4/letter/b/74df32/32.png) [@bifftannen](https://meta.discourse.org/u/bifftannen)\
**Post date:** [June 10, 2021, 6:47am UTC](https://meta.discourse.org/t/missing-open-graph-og-type/177360/5 "2021-06-10T06:47:23Z")

</div>

First of all, thank you for a very cool product, we really like it.

But I’m a bit unsure what you mean?

From what I can understand (and I may very well be wrong), the four required Open Graph tags for every page are `og:title` , `og:type` , `og:image` , and `og:url` .

But the `og:type` is missing, which is causing our Open Graph validation to fail. It just seems to be a very small thing to add. Adding this would, in our case, improve our ranking search wise and then drive more trafic to our community.

---

<div class="post-metadata">

**Author:** ![JoshuaH](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/joshuah/32/209433_2.png) [@JoshuaH](https://meta.discourse.org/u/JoshuaH)\
**Post date:** [June 11, 2021, 1:59pm UTC](https://meta.discourse.org/t/missing-open-graph-og-type/177360/6 "2021-06-11T13:59:31Z")

</div>

I ended up adding the tag manually to the `<head>`: Settings \> Customize \> Select theme \> Edit CSS/HTML \> “`</head>` tab”

Seems to be validating now!

---

<div class="post-metadata">

**Author:** ![guidoleenders](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/guidoleenders/32/196268_2.png) [@guidoleenders](https://meta.discourse.org/u/guidoleenders)\
**Post date:** [June 11, 2021, 2:03pm UTC](https://meta.discourse.org/t/missing-open-graph-og-type/177360/7 "2021-06-11T14:03:50Z")

</div>

Adding it increased the audit ranking of our forums on [Ahrefs](https://ahrefs.com/dashboard) from 54% to 74%.

---

<div class="post-metadata">

**Author:** ![bifftannen](https://avatars.discourse-cdn.com/v4/letter/b/74df32/32.png) [@bifftannen](https://meta.discourse.org/u/bifftannen)\
**Post date:** [June 14, 2021, 6:37am UTC](https://meta.discourse.org/t/missing-open-graph-og-type/177360/8 "2021-06-14T06:37:32Z")

</div>

Its exactly our ahrefs validation that fails. We can add it manually as suggested by @JoshuaH, but it just seems like such a small thing to fix, so it would be nice to have in the next release.

Thanks  
Peter

---

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [June 14, 2021, 6:18pm UTC](https://meta.discourse.org/t/missing-open-graph-og-type/177360/9 "2021-06-14T18:18:15Z")

</div>

This should solve it

[https://github.com/discourse/discourse/commit/f36ecf86f8bc2fe42fda5107663af9d0ae3924e8](https://github.com/discourse/discourse/commit/f36ecf86f8bc2fe42fda5107663af9d0ae3924e8)

---

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [June 15, 2021, 11:00am UTC](https://meta.discourse.org/t/missing-open-graph-og-type/177360/10 "2021-06-15T11:00:17Z")

</div>

This topic was automatically closed after 16 hours. New replies are no longer allowed.
