View Single Post
  #3  
Old April 1st, 2011, 12:02 PM
charlesk charlesk is offline
 
Join Date: Mar 2011
Posts: 43
Default

I've done some experimenting with pasting the like button code in the text area in the product details view and this is what I noticed:

1) When pasting this:

<script src="http://connect.facebook.net/pl_PL/all.js#xfbml=1"></script><fb:like href="" show_faces="false" width="450" font="arial"></fb:like>

The button appears under each product but clicking it makes you "like" the whole store, not the particular product.

2) Pasting this:

<iframe src="http://www.facebook.com/widgets/like.php?href=<?php echo store_link('dfrp=' . $dfr_product_id); ?>"
scrolling="no" frameborder="0"
style="border:none; width:auto; height:24px;"></iframe>

totally destroys the layout.

3) Pasting this:

<iframe src="http://www.facebook.com/widgets/like.php?href="""
scrolling="no" frameborder="0"
style="border:none; width:auto; height:24px;"></iframe>


creates the like button, but with an url error.

Example:
http://www.fashionguide.pl/store/pas...3600984319869/

Thoughts - the iframe seems to be the good way, but I have now idea how to write the permalink in the "href" section. Any ideas?