Ok, lets give it a try :) html-header:
HTML Code:<html xmlns="http://www.w3.org/1999/xhtml" <?php echo HTML_PARAMS; ?> xmlns:fb="http://www.facebook.com/2008/fbml">Replaced adminid. Not sure if its smart to post it here? Anyways I am 100% sure that its correct.HTML Code:<meta property="og:title" content="<?php echo META_TAG_FBTITLE; ?>"/> <meta property="og:site_name" content="<?php echo TITLE; ?>"/> <meta property="og:image" content="<?php echo META_TAG_FBIMG; ?>"/> <meta property="og:url" content="<?php echo $canonicalLink; ?>"/> <meta property="fb:admins" content="XXXX"/> <meta property="og:type" content="product"/>
And heres my tpl_products_info_display:
HTML Code:<!-- bof Facebook Like Button --> <p><fb:like></fb:like></p> <div id="fb-root"></div> <script> window.fbAsyncInit = function() { FB.init({appId: '161270263913707', status: true, cookie: true, xfbml: true}); FB.Event.subscribe('edge.create', function(href, widget) { // Do something, e.g. track the click on the "Like" button here }); }; (function() { var e = document.createElement('script'); e.type = 'text/javascript'; e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js'; e.async = true; document.getElementById('fb-root').appendChild(e); }()); </script> <!-- eof Facebook Like Button -->
Hope this info might be helpful!
That looks correct. Let us know when your site is back up so We can look at it.
aozhaverm, jabbawest
As far as changing the display, it might well not be possible. Facebook puts its own css on these things. Try putting the code into a division with a css class with a color of white and see what happens.
Great little add-on.
Please accept my apologies if this has been raised but I cannot see it.
The add-on works except one thing.. The correct image is not carried over to Facebook, currently the 'Tell your friends' image is added instead. I have checked and double checked the code added to the files but I am obviously missing something, does anybody have any clues?
Site in question is http://www.foreverbelle.co.uk/
Thanks in advance
Sean
Thank you for the reply, I had also noticed this and since added the meta tag but I still get an incorrect image displayed in Facebook
Here is the meta tag info as seen in the source:
<meta property="og:title" content="Silver Love Bling Double Ring"/>
<meta property="og:site_name" content="Forever Belle"/>
<meta property="og:image" content="http://www.foreverbelle.co.uk/images/love double ring.jpg"/>
<meta property="og:url" content="http://www.foreverbelle.co.uk/silver-love-bling-double-ring-p-47.html"/>
<meta property="fb:admins" content="174717399208075"/>
<meta property="og:type" content="product"/>
You're using an app id that's not validated. Check this out:
http://developers.facebook.com/tools...lace-p-78.html
If that doesn't work just paste any url from your site into the linter:
http://developers.facebook.com/tools/lint/
Excellent, thanks for the info, I will start there :)
Hi
I found the problem...
I had to change
<meta property="fb:admins" content="174717399208075"/>
to
<meta property="fb:admins" content="entered email address"/>
This still gives an error when using the developer tool but the add-on works.
Cheers