JasonC
JasonC

Reputation: 313

Wrong value for 'og:type' in facebook debugger

On a site I'm developing, I've set the og:type as "non_profit" as per Facebook's docs.

When I examine the page with the Facebook debugger / linter, the type is picked up as "profile". I can't seem to find anything wrong with my implementation: it all seems to obey FB's docs.

Anyone out there got an idea what I'm doing wrong?


Update: Here is a link to the site: http://www.hncc.co.uk/

And the code looks like this:

<html xmlns:og="http://ogp.me/ns#">
<head>
    <meta property="og:site_name" content="Highgate Newtown Community Centre" />
    <meta property="og:title"     content="Highgate Newtown Community Centre" />
    <meta property="og:type"      content="non_profit" />
    <meta property="og:url"       content="http://www.hncc.co.uk" />
    <meta property="og:image"     content="http://www.hncc.co.uk/...link-to-image.png" />
...

Upvotes: 3

Views: 1781

Answers (1)

ajstiles
ajstiles

Reputation: 89

"profile" is the default object type that Facebook reports for OG objects that report an invalid type. In your case, "non_profit" isn't a built-in type

https://developers.facebook.com/docs/technical-guides/opengraph/built-in-objects/#external_profile

You either need to use one of the built-in types or create a custom type. More info on that here:

https://developers.facebook.com/docs/technical-guides/opengraph/defining-an-object/

Upvotes: 1

Related Questions