How to use the 'og' (Open Graph) meta tag for Facebook share

Vignesh Babu M D picture Vignesh Babu M D · Jul 23, 2012 · Viewed 213.5k times · Source

Facebook fetches all pictures from my site.

I want to share only one picture which is on that page.

I heard about the og meta tag, but I don't know how to put it.

Answer

CarlosPinedaT picture CarlosPinedaT · May 29, 2013

Use:

<!-- For Google -->
<meta name="description" content="" />
<meta name="keywords" content="" />

<meta name="author" content="" />
<meta name="copyright" content="" />
<meta name="application-name" content="" />

<!-- For Facebook -->
<meta property="og:title" content="" />
<meta property="og:type" content="article" />
<meta property="og:image" content="" />
<meta property="og:url" content="" />
<meta property="og:description" content="" />

<!-- For Twitter -->
<meta name="twitter:card" content="summary" />
<meta name="twitter:title" content="" />
<meta name="twitter:description" content="" />
<meta name="twitter:image" content="" />

Fill the content =" ... " according to the content of your page.

For more information, visit 18 Meta Tags Every Webpage Should Have in 2013.