Facebook Developers
DocsToolsSupportNewsApps
  • Davide Cristofori
    • Advertising
    • Settings
  • Getting Started
  • Core Concepts
    • Social Design
    • Social Plugins
    • Social Channels
    • Open Graph
    • Dialogs
    • Authentication
  • Advanced Topics
  • API Reference
  • SDK Reference
  • Getting Started
    • Key Concepts
    • Tutorial
    • Tutorial Videos
    • Auth Dialog
    • Social Plugins
    • Open Graph Samples
  • Open Graph Tool
    • Define Objects
    • Define Actions
    • Define Aggregations
    • Using Text Templates
  • Approval
    • Open Graph Checklist
    • Submit for Approval
  • Reference
    • Using Objects
    • Using Actions
    • Open Graph Permissions
    • Built-in Object Types
    • Built-in Action Types
    • Built-in Like
    • Simple Types
    • Complex Types
    • Explicit Sharing
    • Location Tagging
    • Mention Tagging
    • Open Graph Follows
    • Publishing Past Actions
    • Title-less objects
    • User Generated Photos
  • Advanced
    • Open Graph Internationalization
    • Action Links
    • Open Graph Insights
    • User Restrictions
    • Using App Access Tokens
  • Archive
    • Open Graph Protocol

Built-in Object Types

Core Concepts › Open Graph › Built-in Object Types

Facebook has defined a set of common object types for use in your apps. Certain Built-in Object Types are designed to work with Built-in Action Types. However, you can also define Custom Action Types to act on any Built-in Object Type. In order to use Built-in Objects in your app, you will need to register them in the App Dashboard. The following Built-in Object Types are available:

  • Article
  • Blog
  • Book
  • Profile (External)
  • Movie
  • TV Episode
  • TV Show
  • Video
  • Website

Built-in Object Types are defined with object properties, represented as Open Graph meta tags with Simple Types. In addition, we have created a set of predefined groups of meta tags that can be used as a property of any Open Graph object, called Complex Types.


Article

Property NameDescriptionType
TitleArticle NameString
DescriptionDescription of ArticleString
ImageArray of images.
The images must be at least 50px by 50px (though minimum 200px by 200px is preferred) and have a maximum aspect ratio of 3:1. We support PNG, JPEG and GIF formats.
Image[]
URLOpen Graph URL for the articleURL
Site NameHuman-readable name of site hosting the articleString
Published TimeTime when article was publishedDateTime
Modified TimeTime when article was last updatedDateTime
Expiration Time Time when the article should expire.

The expiration time is used as a signal to determine when stories are promoted and for how long. Stories will be naturally expired.
DateTime
AuthorArray of authors of the articleProfile[]
SectionSection this article belongs to
(e.g. Sports, Lifestyle)
String
TagKey words for the articleString[]

Example

<html>
    <head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# 
                  article: http://ogp.me/ns/article#">
     <meta property="fb:app_id"               content="YOUR_APP_ID"> 
     <meta property="og:type"                 content="article"> 
     <meta property="og:url"                  content="URL of this object">
     <meta property="og:site_name"            content="Name of site hosting article">
     <meta property="og:image"                content="URL to an image">
     <meta property="og:title"                content="Name of article">
     <meta property="og:description"          content="Description of object"> 
     <meta property="article:published_time"  content="DateTime"> 
     <meta property="article:modified_time"   content="DateTime"> 
     <meta property="article:expiration_time" content="DateTime">
     <meta property="article:author"          content="URL to Author object">
     <meta property="article:section"         content="Section of article">
     <meta property="article:tag"             content="Keyword">
    </head>
<body>
    <!-- main article body -->
</body>
</html>


Example OG markup of http://www.stanforddaily.com/2011/01/24/card-trounces-trojans/

<html>
    <head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# 
                  article: http://ogp.me/ns/article#">
     <meta property="fb:app_id"               content="YOUR_APP_ID"> 
     <meta property="og:type"                 content="article"> 
     <meta property="og:url"                  content="http://www.stanforddaily.com/2011/01/24/card-trounces-trojans/">
     <meta property="og:site_name"            content="The Stanford Daily"/>
     <meta property="og:image"                content="http://www.stanforddaily.com/wp-content/uploads/2011/01/SPO.012411.wbb_.jpg">
     <meta property="og:title"                content="W. Basketball: Trojans trounced">
     <meta property="og:description"          content="It might be a little early to give Stanford the national trophy, but that didn't stop USC head coach Michael Cooper from making a firm prediction following his team's 95-51 loss to No. 4 Stanford women's basketball on Saturday afternoon."> 
     <meta property="article:published_time"  content="2010-01-24">
     <meta property="article:expiration_time" content="2010-01-26">
     <meta property="article:author"          content="http://www.stanforddaily.com/author/ivynguyen/">
     <meta property="article:section"         content="Sports">
     <meta property="article:tag"             content="Stanford women's basketball">
     <meta property="article:tag"             content="USC">
     <meta property="article:tag"             content="Jeanette Pohlen">
    </head>
<body>
    <!--main article body -->
</body>
</html>


Blog

Property NameDescriptionType
TitleBlog NameString
DescriptionDescription of BlogString
ImageArray of imagesImage[]
URLOpen Graph URL for the blogURL

Example

<html>
    <head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# 
                  blog: http://ogp.me/ns/blog#">
     <meta property="fb:app_id"               content="YOUR_APP_ID"> 
     <meta property="og:type"                 content="blog"> 
     <meta property="og:url"                  content="URL of this object"> 
     <meta property="og:image"                content="URL to an image">
     <meta property="og:title"                content="Name of blog">
     <meta property="og:description"          content="Description of object"> 
    </head>
<body>
    <!--a wonderful blog  -->
</body>
</html>


Book

Property NameDescriptionType
TitleBook NameString
DescriptionDescription of BookString
ImageArray of imagesImage[]
URLOpen Graph URL for the bookURL
AuthorArray of authors of the bookProfile[]
ISBNISBN of bookString
Release DateWhen the book was publishedDateTime
TagKey words for the bookString[]

Example

<html>
    <head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# 
                  book: http://ogp.me/ns/book#">
     <meta property="fb:app_id"               content="YOUR_APP_ID"> 
     <meta property="og:type"                 content="book"> 
     <meta property="og:url"                  content="URL of this object">
     <meta property="og:image"                content="URL to an image">
     <meta property="og:description"          content="Description of content">
     <meta property="og:title"                content="Name of book">
     <meta property="book:release_date"       content="DateTime">
     <meta property="book:author"             content="Who wrote this">
     <meta property="book:isbn"               content="ISBN Number">
     <meta property="book:tag"                content="keywords">
    </head>
<body>
    <!--a wonderful book -->
</body>
</html>


Profile (External)

Property NameDescriptionType
TitleProfile NameString
DescriptionDescription of Profile ObjectString
ImageArray of imagesImage[]
URLOpen Graph URL of the ProfileURL
First NameFirst Name of ProfileString
Last NameLast Name of ProfileString
UsernameUsername of Profile, if applicableString
Gendermale or femaleEnum
Profile IDThe equivalent Facebook User ID of this user profile, if known. We strongly recommend using the encrypted version of the Facebook User ID, known as the Third-Party FB UIDString

Example

<html>
    <head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# 
                  profile: http://ogp.me/ns/profile#">
     <meta property="fb:app_id"               content="YOUR_APP_ID"> 
     <meta property="og:type"                 content="profile"> 
     <meta property="og:url"                  content="URL of this object">
     <meta property="og:image"                content="URL to an image">
     <meta property="og:title"                content="Name of User">
     <meta property="og:description"          content="Description of content">
     <meta property="profile:first_name"      content="First Name">
     <meta property="profile:last_name"       content="Last Name">
     <meta property="profile:username"        content="UserName">
     <meta property="profile:gender"          content="male | female">
     <meta property="fb:profile_id"           content="THIRD_PARTY_FB_UID">
    </head>
<body>
    <!--a wonderful user profile -->
</body>
</html>


Movie

Property NameDescriptionType
TitleMovie NameString
DescriptionDescription of ArticleString
ImageArray of imagesImage[]
URLURL for the objectURL
Release DateWhen the movie was releasedDateTime
DurationLength of the movieInteger
ActorArray of struct for actorsStruct[Profile, String]
DirectorArray of directorsProfile[]
WriterArray of writersProfile[]
TagKey words for the movieString[]

Example

<html>
    <head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# 
                  video: http://ogp.me/ns/video#">
     <meta property="fb:app_id"               content="YOUR_APP_ID"> 
     <meta property="og:type"                 content="video.movie"> 
     <meta property="og:url"                  content="URL of this object">
     <meta property="og:image"                content="URL to an image">
     <meta property="og:title"                content="Movie title">
     <meta property="og:description"          content="Description of movie">
     <meta property="video:release_date"      content="DateTime">
     <meta property="video:actor"             content="URL to Profile">
     <meta property="video:actor:role"        content="Role in Move">
     <meta property="video:duration"          content="runtime in secs">
     <meta property="video:director"          content="URL to Profile">
     <meta property="video:writer"            content="URL to Profile">
     <meta property="video:tag"               content="keyword">
    </head>
<body>
    <!--a wonderful movie -->
</body>
</html>


TV Episode

Property NameDescriptionType
TitleTV Episode NameString
DescriptionDescription of TV EpisodeString
ImageArray of imagesImage[]
URLURL for the objectURL
Release DateWhen the TV Episode was releasedDateTime
DurationLength of the TV EpisodeInteger
ActorArray of struct for actorsStruct[Profile, String]
DirectorArray of directorsProfile[]
WriterArray of writersProfile[]
SeriesSeries, which the TV Episode is part ofURL to a video.tv_show
TagKey words for the TV EpisodeString[]

Example

<html>
    <head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# 
                  video: http://ogp.me/ns/video#">
     <meta property="fb:app_id"               content="YOUR_APP_ID"> 
     <meta property="og:type"                 content="video.episode"> 
     <meta property="og:url"                  content="URL of this object">
     <meta property="og:image"                content="URL to an image">
     <meta property="og:title"                content="TV Episode Name">
     <meta property="og:description"          content="Description of TV Episode">
     <meta property="video:release_date"      content="DateTime">
     <meta property="video:actor"             content="URL to Profile">
     <meta property="video:actor:role"        content="Role in Move">
     <meta property="video:duration"          content="runtime in secs">
     <meta property="video:director"          content="URL to Profile">
     <meta property="video:writer"            content="URL to Profile">
     <meta property="video:series"            content="URL to video:tv_show">
     <meta property="video:tag"               content="keyword">
    </head>
<body>
    <!--a wonderful episode -->
</body>
</html>


TV Show

Property NameDescriptionType
TitleTV Show NameString
DescriptionDescription of the TV ShowString
ImageArray of imagesImage[]
URLURL for the objectURL
Release DateWhen the TV Show was releasedDateTime
DurationLength of the showInteger
ActorArray of struct for actorsStruct[Profile, String]
DirectorArray of directorsProfile[]
WriterArray of writersProfile[]
TagKey words for the showString[]

Example

<html>
    <head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# 
                  video: http://ogp.me/ns/video#">
     <meta property="fb:app_id"               content="YOUR_APP_ID"> 
     <meta property="og:type"                 content="video.tv_show"> 
     <meta property="og:url"                  content="URL of this object">
     <meta property="og:image"                content="URL to an image">
     <meta property="og:title"                content="TV Show Name">
     <meta property="og:description"          content="Description of TV Show">
     <meta property="video:release_date"      content="DateTime">
     <meta property="video:actor"             content="URL to Profile">
     <meta property="video:actor:role"        content="Role in Move">
     <meta property="video:duration"          content="runtime in secs">
     <meta property="video:director"          content="URL to Profile">
     <meta property="video:writer"            content="URL to Profile">
     <meta property="video:tag"               content="keyword">
    </head>
<body>
    <!--a wonderful show -->
</body>
</html>


Video

Property NameDescriptionType
TitleVideo TitleString
DescriptionDescription of the videoString
ImageArray of imagesImage[]
URLURL for the objectURL
Release DateWhen the video was releasedDateTime
DurationLength of the videoInteger
ActorArray of struct for actorsStruct[Profile, String]
DirectorArray of directorsProfile[]
WriterArray of writersProfile[]
TagKey words for the videoString[]

Example

<html>
    <head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# 
                  video: http://ogp.me/ns/video#">
     <meta property="fb:app_id"               content="YOUR_APP_ID"> 
     <meta property="og:type"                 content="video.other"> 
     <meta property="og:url"                  content="URL of this object">
     <meta property="og:image"                content="URL to an image">
     <meta property="og:title"                content="Video Title">
     <meta property="og:description"          content="Description of video">
     <meta property="video:release_date"      content="DateTime">
     <meta property="video:actor"             content="URL to Profile">
     <meta property="video:actor:role"        content="Role in Move">
     <meta property="video:duration"          content="runtime in secs">
     <meta property="video:director"          content="URL to Profile">
     <meta property="video:writer"            content="URL to Profile">
     <meta property="video:tag"               content="keyword">
    </head>
<body>
    <!--a wonderful show -->
</body>
</html>


Website

Property NameDescriptionType
TitleWebsite NameString
DescriptionDescription of WebsiteString
ImageArray of imagesImage[]
URLOpen Graph URL for the websiteURL

Example

<html>
    <head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# 
                  website: http://ogp.me/ns/website#">
     <meta property="fb:app_id"               content="YOUR_APP_ID"> 
     <meta property="og:type"                 content="website"> 
     <meta property="og:url"                  content="URL of this object"> 
     <meta property="og:image"                content="URL to an image">
     <meta property="og:title"                content="Name of blog">
     <meta property="og:description"          content="Description of object"> 
    </head>
<body>
    <!--a wonderful website  -->
</body>
</html>
Report Documentation Bug
Updated about 4 months ago
Facebook © 2012 · English (US)
AboutAdvertisingCareersPlatform PoliciesPrivacy Policy