the Blog

Meta Tags for Social Media

Posted on January 5, 2014 by Michael Rosario  |  Comments

We have meta tags for keywords, descriptions - now we have additional meta tags for sharing specific information for Twitter, Facebook and Google+. The list goes on. Adding these "tags" on your site is a good practice to promote Search Engine Optimization and allow you to customize what people see when they search or share your site online. They are added between your HEAD tags.

On this site, we use the following title, META Description and META Keywords, here is a sample:

<head>
    ...
        <
titleA Resource for Developers from...</title>
        <
meta name="description" content="A resource..." />
        <
meta name="keywords" content="php, xhtml..." />
    ...
</
head

TITLE - The title of the page.
DESCRIPTION - A sentence to describe the page, preferably 150 characters long.
KEYWORDS - A comma-delimited list of descriptors for the page.

Facebook and Google+

For Facebook and Google+ specific sharing, we use the following meta tags called "Open Graph":

<head>
    ...
        <
meta property="og:title" content="TITLE OF THE PAGE" />
        <
meta property="og:type" content="CATEGORY OF PAGE"/>
        <
meta property="og:image" content="URL OF IMAGE" />
        <
meta property="og:description" content="DESCRIPTION" />
        <
meta property="og:url" content="URL OF PAGE" />
    ...
</
head
Twitter

Similarly, for Twitter-specific sharing, we use the following meta tags:

<head>
    ...
        <
meta property="twitter:title" content="TITLE" />
        <
meta property="twitter:image" content="URL" />
        <
meta property="twitter:description" content="DESCR." />
        <
meta property="twitter:url" content="URL OF PAGE" />
    ...
</
head


comments powered by Disqus

Other Recent Blog

PRIME Day is here!
Posted on July 11, 2017  |  Comments The 2017 Amazon Prime Day sales event starts at 9 p.m. ET on Monday, July 10, and ends at 3 a.m. ET on Wednesday, July 12 offering over 100,000 deals.
Amazon Phone Repairs at Your Convenience
Posted on June 23, 2017  |  Comments I'm embarrassed to say how many times i've broken my phone screen. I've even tried numerous things: self-repair kits, mall repair stands, and waited on lines at the Apple Store to get the screen repaired. Glad there's another service - introducing Amazon Repair!