Skip to content

Instantly share code, notes, and snippets.

@rohankhudedev
Created February 16, 2018 17:48
Show Gist options
  • Save rohankhudedev/73f72bab026b034f3b2b8d933b3a6dd7 to your computer and use it in GitHub Desktop.
Save rohankhudedev/73f72bab026b034f3b2b8d933b3a6dd7 to your computer and use it in GitHub Desktop.
Essential Social Media Meta Tags
<!-- Place this data between the <head> tags of your website -->
<title>Page Title. Maximum length 60-70 characters</title>
<meta name="description" content="Page description. No longer than 155 characters." />

<!-- Twitter Card data -->
<meta name="twitter:card" content="summary">
<meta name="twitter:site" content="@publisher_handle"> <!--  Non-Essential, But Required for Analytics -->
<meta name="twitter:title" content="Page Title">
<meta name="twitter:description" content="Page description less than 200 characters">
<!-- Twitter Summary card images must be at least 120x120px -->
<meta name="twitter:image" content="http://www.example.com/image.jpg">
<meta name="twitter:image:alt" content="Alt text for image"><!--  Non-Essential, But Recommended -->

<!-- Open Graph data -->
<meta property="og:title" content="Title Here" />
<meta property="og:type" content="article" />
<meta property="og:url" content="http://www.example.com/" />
<meta property="og:image" content="http://example.com/image.jpg" />
<meta property="og:description" content="Description Here" /> 
<meta property="og:site_name" content="Site Name, i.e. Moz" /><!--  Non-Essential, But Recommended -->
<!--  Non-Essential, But Required for Analytics -->
<meta property="fb:app_id" content="your_app_id" />
<!-- or, if multiple users-->
<meta property="fb:admins" content="user_id1,user_id2,user_id3" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment