OpenGraph Tags in TYPO3

page.2 = LOAD_REGISTER
page.2.pageMedia.cObject = IMG_RESOURCE
page.2.pageMedia.cObject {
    file {
        import.data = levelmedia:-1, slide
        treatIdAsReference = 1
        import.listNum = 0
    }
}

page.2.localeAll.cObject = TEXT
page.2.localeAll.cObject.value < config.locale_all

page.2.currentUrl.cObject = TEXT
page.2.currentUrl.cObject.typolink {
    parameter.data=TSFE:id
    returnLast=url
}

# OpenGraph Data
page.headerData.7 = TEXT
page.headerData.7.value (
<meta property="og:title" content="{page:subtitle}" />
<meta property="og:url" content="{$baseurl}{register:currentUrl}?utm_campaign=OpenGraph" />
<meta property="og:locale" content="{register:localeAll}" />
<meta property="og:type" content="website" />
<meta property="og:description" content="{page:description}" />
<meta property="og:image" content="{$baseurl}{register:pageMedia}" />
)
page.headerData.7.insertData = 1