Sharing the code I used.. The one module that automatically creates the meta tags required for Facebook REQUIRES the CSS/JS Loader.. Personally, I'm not a fan of being FORCED to use a module I don't particularly care for JUST to use another module.. So I did a little work to figure out the right code I needed..
In the includes/templates/scrappin_stuff/common/html_header.php file, find this:
Code:
<meta name="description" content="<?php echo META_TAG_DESCRIPTION; ?>" />
Below that add this:
Code:
<meta property="og:locale" content="en_US" /> <!-- This is for USA, if your locale is different enter it here -->
<meta property="og:type" content="website" />
<meta property="og:title" content="<?php echo STORE_NAME; ?>" />
<meta property="og:description" content="Enter your own site description here" /> <!-- Enter your site description here -->
<meta property="og:url" content="<?php echo $canonicalLink; ?>" />
<meta property="og:site_name" content="<?php echo STORE_NAME; ?>" />
<meta property="og:image" content="<?php echo HTTP_SERVER . DIR_WS_CATALOG . DIR_WS_TEMPLATE . 'images/' . HEADER_LOGO_IMAGE; ?>" />
To verify that things are working go to the Facebook link: https://developers.facebook.com/tools/debug/og/object/
Enter your URL and click "Show Scrape Information". If there are any errors, you will see them here. You'll need to address those error. If the data shown does not match your current meta tags, the click the "Get New Scrape" information to refresh the data.
Bookmarks