has anyone tested the http://drupal.org/project/opengraph_meta module to see if it works with addtoany when sharing content to facebook? I thought it might so I installed it but its not working for me.

Comments

kevstav13’s picture

A month late, but maybe I can still help:

You can manually put in open graph meta tags via your tpl files. For example, in my page-node.tpl.php, I added meta tags like such:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns:fb="http://www.facebook.com/2008/fbml" 
		xmlns:og="http://opengraphprotocol.org/schema/"
                    xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $language->language ?>" 
                    lang="<?php print $language->language ?>" dir="<?php print $language->dir ?>">
    <meta property="og:image" content="http://[site]/sites/default/files/imagecache/latest-items/<?php print db_result(db_query("SELECT filename FROM files WHERE fid IN(SELECT field_image_cache_fid FROM content_field_image_cache WHERE delta = 0 AND nid = %d)", $node->nid)) ?>">	 
    <meta property="og:type" content="website">	 
    <meta property="fb:app_id" content="213338378734848">	 

To find what meta tags are available, visit the Facebook developers page and look up Open Graph protocol objects.

Once you've set up some meta tags, you can use the Facebook debugger (http://developers.facebook.com/tools/debug) to see what Facebook is picking up from your page, and any errors that are happening.

Hope this can still help!

yosisays’s picture

Thanks Kevstav13.

I might need a bit more than open graph meta tags for a few static pages on my site. For that need, to manualy add them would be no big deal but I need a mechanism to automatically add them to all newly created nodes (which will be many and on going), specifically product nodes (ubercart) in my case.

The module @ http://drupal.org/project/opengraph_meta is supposed to do something of this nature but I cant seem to get it to work with the Share Button widget/module. Has anyone had success with this??

micropat’s picture

Issue summary: View changes
Status: Active » Closed (outdated)