Hello,
I am using the Omega theme. As it doesn't actually have a page.tpl.php file, I instead pasted the code:
xmlns:og="http://opengraphprotocol.org/schema/"
inside the page.tpl.php file in the path omega/alpha/templates/html.tpl.php
My code looks like this:
<?php
/**
* @file
* Alpha's theme implementation to display the basic html structure of a single
* Drupal page.
*/
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN"
"http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">
<html xmlns:og="http://opengraphprotocol.org/schema/" xml:lang="<?php print $language->language; ?>" version="XHTML+RDFa 1.0" dir="<?php print $language->dir; ?>"<?php print $rdf_namespaces; ?>>
<head profile="<?php print $grddl_profile; ?>">
<?php print $head; ?>
<title><?php print $head_title; ?></title>
<?php print $styles; ?>
<?php print $scripts; ?>
</head>
<body<?php print $attributes;?>>
<div id="skip-link">
<a href="#main-content" class="element-invisible element-focusable"><?php print t('Skip to main content'); ?></a>
</div>
<?php print $page_top; ?>
<?php print $page; ?>
<?php print $page_bottom; ?>
</body>
</html>I placed an image file in my files folder and specified in the the module configuration. I also configured the rest of the module. I emptied my cache and checked report and all seems well.
However, when I go to Facebook, there is no thumbnail image beside the text when I paste in the website link. The website is http://juniperstudios.net/
I cleared the site's Facebook cache using FB's debug tool, and checked 'Scraped URL - See exactly what our scraper sees for your URL'. In there, there is no reference to xmlns:og="http://opengraphprotocol.org/schema/" in the HTML tag. Instead, there is:
<html lang="en" dir="ltr" version="HTML+RDFa 1.1" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/terms/" xmlns:foaf="http://xmlns.com/foaf/0.1/" xmlns:og="http://ogp.me/ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:sioc="http://rdfs.org/sioc/ns#" xmlns:sioct="http://rdfs.org/sioc/types#" xmlns:skos="http://www.w3.org/2004/02/skos/core#" xmlns:xsd="http://www.w3.org/2001/XMLSchema#">
So, I think that FB is not seeing the module. I could well be wrong. Need some help with this please. Is it because if Omega's slightly unusual php file structure? i.e. that it references Alpha as its master. This is my guess.
Many thanks in advance for any thoughts or help.
M
Comments
Comment #1
lilbebel commentedI found a workaround that has nothing to do with Open Graph Meta tag.
I followed this tutorial:
http://www.clickonf5.org/5536/how-insert-custom-image-thumbnail-facebook...
just on the off chance that it would work and it did! Very surprising.