View Single Post
  #14  
Old December 28th, 2011, 01:04 PM
DMAB22 DMAB22 is offline
 
Join Date: Dec 2011
Posts: 14
Default

hi there,

so after removing the canonical url the product link (when added to facebook) defaults to the store front page. this is the code i'm using.

to the <head> i've added <html xmlns:fb="http://ogp.me/ns/fb#">

to <body> i've added <div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>

and then I've added this to the text module in the product detail default template

<fb:like href="[server.url type='fullpage']" send="false" width="450" show_faces="false"></fb:like>

any ideas?