Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are facebook's og:type's allowed values?

I have found links to this page, but it does not supply the information I need:

https://developers.facebook.com/docs/opengraph/#types

What are the possible types?

like image 997
Robin Manoli Avatar asked Mar 29 '13 13:03

Robin Manoli


1 Answers

The type for an og:type property can be anything you want it to be, as long as you have an Open Graph Story set up in your application. When you are setting up your story, you will be asked to provide an action, such as "cook", "eat", "walk", etc, and an object, such as "food", "dessert", or "route". That object is incorporated into the "type" that you provide in your open graph tags.

For example, if my app, DessertTaster, had an open graph story:

{user} tasted this dessert

The verb (action) is "taste", and the object is "dessert", and the corresponding og:type tag is:

<meta property="og:type" content="desserttaster:dessert" />

If you developed an app that used one of the default stories (and this is encouraged by facebook), then you might have an og story pair that had an action news.reads with object article.

<meta property="og:type" content="article" />

In that case, no app namespace is required.

like image 162
Julian H. Lam Avatar answered Oct 18 '22 01:10

Julian H. Lam