Skip to content

Instantly share code, notes, and snippets.

@Ahrengot
Created October 21, 2011 19:32
Show Gist options
  • Save Ahrengot/1304719 to your computer and use it in GitHub Desktop.
Save Ahrengot/1304719 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="me@example.com"/>
<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