Skip to content

Instantly share code, notes, and snippets.

@jochemstoel
Forked from Ahrengot/Open Graph meta tags
Created November 3, 2016 20:24
Show Gist options
  • Save jochemstoel/bbf84cee49df1f6d66feb4c0bc5183c4 to your computer and use it in GitHub Desktop.
Save jochemstoel/bbf84cee49df1f6d66feb4c0bc5183c4 to your computer and use it in GitHub Desktop.
Open Graph meta tags for web pages
<!-- Open Graph Protocol: http://developers.facebook.com/docs/opengraph/ -->
<!-- Required -->
<meta property="og:title" content="PAGE_TITLE"/>
<meta property="og:type" content="TYPE"/>
<meta property="og:url" content="FULL_URL"/>
<meta property="og:image" content="FULL_IMGAGE_URL_MIN_50x50PX"/>
<!-- Optional -->
<meta property="og:site_name" content="SITE_NAME"/>
<meta property="fb:admins" content="USER_ID"/>
<meta property="og:description" content="SOME_CONTENT_HERE"/>
<!-- Required for location -->
<meta property="og:latitude" content="37.416343"/>
<meta property="og:longitude" content="-122.153013"/>
<meta property="og:street-address" content="1601 S California Ave"/>
<meta property="og:locality" content="Palo Alto"/>
<meta property="og:region" content="CA"/>
<meta property="og:postal-code" content="94304"/>
<meta property="og:country-name" content="USA"/>
<!-- Required for contact -->
<meta property="og:email" content="[email protected]"/>
<meta property="og:phone_number" content="650-123-4567"/>
<meta property="og:fax_number" content="+1-415-123-4567"/>
<!-- Required for video -->
<meta property="og:video" content="http://example.com/awesome.swf" />
<meta property="og:video:height" content="640" />
<meta property="og:video:width" content="385" />
<meta property="og:video:type" content="application/x-shockwave-flash" />
<!-- Required for Audio -->
<meta property="og:audio" content="http://example.com/amazing.mp3" />
<meta property="og:audio:title" content="Amazing Song" />
<meta property="og:audio:artist" content="Amazing Band" />
<meta property="og:audio:album" content="Amazing Album" />
<meta property="og:audio:type" content="application/mp3" />
<!-- /Open Graph Protocol -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment