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

Cutting the Cable Cord: Ways to Save
Posted on March 20, 2015  |  Comments Cable is great - lots of channels, DVR, movies! Do I really need all that? I cut the chord to save money and see all the possible options to save.
Echo Dot - 2nd Generation
Posted on February 5, 2015  |  Comments Amazon's Echo Dot is a hands-free, voice-controlled device that uses Alexa to play music, control smart home devices, make calls, send and receive messages, provide information, read the news, set alarms, read audiobooks from Audible, and more.
A Conversation about Conservation
Posted on November 16, 2014  |  Comments It's always good to save money and save the environment at the same time. There are so many ways, lifehacks, and things we can do. Please share.