Skip to content

npapratovic/magento-ogmeta

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

magento-ogmeta

Magento 1 module to add basic Open Graph Metadata http://ogp.me/

Instead of manually adding the code in the head.phtml, you could do it in a module which is much cleaner and flexible.

This extension works both on product page and category page.

Usage: unzip it in magento root

Basic Metadata:

To turn your web pages into graph objects, you need to add basic metadata to your page. We've based the initial version of the protocol on RDFa which means that you'll place additional tags in the of your web page. The four required properties for every page are:

  • og:title - The title of your object as it should appear within the graph, e.g., "The Rock".
  • og:type - The type of your object, e.g., "video.movie". Depending on the type you specify, other properties may also be required.
  • og:image - An image URL which should represent your object within the graph.
  • og:url - The canonical URL of your object that will be used as its permanent ID in the graph, e.g., "http://www.imdb.com/title/tt0117500/".

To debug open graph data, use Facebook Debugger -> https://developers.facebook.com/tools/debug/

Use it as you like it

Releases

No releases published

Packages

No packages published