-
Notifications
You must be signed in to change notification settings - Fork 119
Closed
Labels
Description
Facebook Oepn Graph defines an expanded version of embedded metadata depending on the value of og:type.
For example:
article - Namespace URI: http://ogp.me/ns/article#
article:published_time - datetime - When the article was first published.
article:modified_time - datetime - When the article was last changed.
article:expiration_time - datetime - When the article is out of date after.
article:author - profile array - Writers of the article.
article:section - string - A high-level section name. E.g. Technology
article:tag - string array - Tag words associated with this article.
This is used for example on nytimes.com. Snippet:
<meta property="og:url" content="http://www.nytimes.com/2016/12/15/arts/music/from-steet-theater-to-wagner-on-the-opera-stage.html" />
<meta property="og:type" content="article" />
<meta property="og:title" content="From Street Theater to Wagner on the Opera Stage" />
<meta property="og:description" content="Àlex Ollé brings an avant-garde sensibility to “The Flying Dutchman,” which he set in Bangladesh instead of Norway. The production opens in Madrid on Saturday." />
<meta property="article:published" itemprop="datePublished" content="2016-12-15T05:55:55-05:00" />
<meta property="article:modified" itemprop="dateModified" content="2016-12-15T06:19:30-05:00" />
<meta property="article:section" itemprop="articleSection" content="Music" />
<meta property="article:section-taxonomy-id" itemprop="articleSection" content="C5BFA7D5-359C-427B-90E6-6B7245A6CDD8" />
<meta property="article:section_url" content="http://www.nytimes.com/section/arts" />
<meta property="article:top-level-section" content="arts" />
<meta property="fb:app_id" content="9869919170" />
Currently (as I write these lines version 0.3.0a1) extracts raw article:... properties
...
'article:author': [{'@value': 'http://www.nytimes.com/by/raphael-minder'}],
'article:collection': [{'@value': 'https://static01.nyt.com/services/json/sectionfronts/arts/music/index.jsonp'}],
'article:modified': [{'@value': '2016-12-15T06:19:30-05:00'}],
'article:published': [{'@value': '2016-12-15T05:55:55-05:00'}],
'article:section': [{'@value': 'Music'}],
'article:section-taxonomy-id': [{'@value': 'C5BFA7D5-359C-427B-90E6-6B7245A6CDD8'}],
'article:section_url': [{'@value': 'http://www.nytimes.com/section/arts'}],
'article:tag': [{'@value': 'Opera'},
{'@value': 'Bangladesh'},
{'@value': 'Madrid (Spain)'},
{'@value': 'Teatro Real'},
{'@value': 'Wagner, Richard'}],
'article:top-level-section': [{'@value': 'arts'}],
'fb:app_id': [{'@value': '9869919170'}],
'http://opengraphprotocol.org/schema/description': [{'@value': 'Ã\x80lex '
'Ollé brings '
'an '
'avant-garde '
'sensibility '
'to '
'â\x80\x9cThe '
'Flying '
'Dutchman,â\x80\x9d '
'which he set '
'in '
'Bangladesh '
'instead of '
'Norway. The '
'production '
'opens in '
'Madrid on '
'Saturday.'}],
'http://opengraphprotocol.org/schema/image': [{'@value': 'https://static01.nyt.com/images/2016/12/16/arts/16ALEXOLLE1-INYT/16ALEXOLLE1-INYT-facebookJumbo.jpg'}],
'http://opengraphprotocol.org/schema/title': [{'@value': 'From Street '
'Theater to Wagner '
'on the Opera '
'Stage'}],
'http://opengraphprotocol.org/schema/type': [{'@value': 'article'}],
'http://opengraphprotocol.org/schema/url': [{'@value': 'http://www.nytimes.com/2016/12/15/arts/music/from-steet-theater-to-wagner-on-the-opera-stage.html'}],
...
while they could use the type-dependent OGP namespace