Hi,
I've been rolling around to get the facebook like button to work in a product/group page, displaying the correct preview image. I got the FBML for the like button, but is there anything special required to get this to work properly?
Nuno
Developer forum
E-mail notifications
eCommerce + Facebook Like (image preview)
Nuno Aguiar
Posted on 01/06/2011 20:04:38
Replies
I. Sergey
Posted on 02/06/2011 05:18:51
Hi Nuno,
To add your facebook like button you can add this code into your product/group template:
<iframe src="http://www.facebook.com/plugins/like.php?href=YOUR_URL"
scrolling="no" frameborder="0"
style="border:none; width:450px; height:80px"><iframe>
Also you can use one of the following dynamicweb tags to add Share buttons into your Page Template:
DwAddToAny.Small, DwAddToAny.Medium, DwAddThis.Large, DwAddThis.Small, DwAddThis.Compact, DwAddThis.Expanded
Or you can write the html code into your product/group template like this one below:
<div class="addthis_toolbox addthis_default_style"><a href="http://www.addthis.com/bookmark.php?v=250" class="addthis_button_compact">Share</a></div><script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js"></script>
To add your facebook like button you can add this code into your product/group template:
<iframe src="http://www.facebook.com/plugins/like.php?href=YOUR_URL"
scrolling="no" frameborder="0"
style="border:none; width:450px; height:80px"><iframe>
Also you can use one of the following dynamicweb tags to add Share buttons into your Page Template:
DwAddToAny.Small, DwAddToAny.Medium, DwAddThis.Large, DwAddThis.Small, DwAddThis.Compact, DwAddThis.Expanded
Or you can write the html code into your product/group template like this one below:
<div class="addthis_toolbox addthis_default_style"><a href="http://www.addthis.com/bookmark.php?v=250" class="addthis_button_compact">Share</a></div><script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js"></script>
Per Søgaard
Posted on 15/06/2011 21:27:14
I think the problem is to specify a specific image from the website to go on Facebook. If not specified correctly it might take image that you dont want to go there (eg. credit card logo..).
If anyone has a solution for this i would very much like to hear about it.
Per S
If anyone has a solution for this i would very much like to hear about it.
Per S
Nuno Aguiar
Posted on 16/06/2011 10:54:47
This post has been marked as an answer
Hi Guys,
I got two solutions:
1. Old Facebook code - Legacy - You have to insert the absolute src in the href attribute
2. New Facebook code - hopefully available in a new future
http://developer.dynamicweb-cms.com/forum/feature-requests/feature-requests/facebook--ecommerce---opengraph-tags.aspx
I got two solutions:
1. Old Facebook code - Legacy - You have to insert the absolute src in the href attribute
<link rel="image_src" href="http://www.marionnaud.pt/Files/Billeder/Marionnaud/Coty/3414200324038.jpg" />
2. New Facebook code - hopefully available in a new future
http://developer.dynamicweb-cms.com/forum/feature-requests/feature-requests/facebook--ecommerce---opengraph-tags.aspx
Votes for this answer: 0
Dennis Thrane
Posted on 05/08/2011 11:08:37
So when will this be possible? I’m also struggling with a Facebook like button for ecom.
You must be logged in to post in the forum