Facebook Like/Recommends
#1
Posted 26 February 2011 - 02:31 AM
I am hearing all kinds of things about Social Commerce, and so on.
I know I can add a Like or Recommend button to any page in Lemonstand - but what I really want to do is recommend a product, so is there a way of referencing the page you are on dynamically in Facebook plugin code?
#2
Posted 26 February 2011 - 12:39 PM
NickToye, on 26 February 2011 - 02:31 AM, said:
I am hearing all kinds of things about Social Commerce, and so on.
I know I can add a Like or Recommend button to any page in Lemonstand - but what I really want to do is recommend a product, so is there a way of referencing the page you are on dynamically in Facebook plugin code?
You cand add in any partial you like the following code for a facebook like button:
<iframe src="http://www.facebook.com/plugins/like.php?href=<? echo urlencode($_SERVER['REQUEST_URI']); ?>&layout=standard&show_faces=true&width=450&action=like&colorscheme=light&height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe>
#3
Posted 26 February 2011 - 12:44 PM
#4
Posted 27 February 2011 - 01:19 AM
http://www.walkernew...ress-post-page/
This can be done for sure. Just like Digg. Infact, this topic has a share button on the bottom-left which redirects to:
http://www.facebook....kerecommends%2F
#5
Posted 27 February 2011 - 03:41 AM
#6
Posted 27 February 2011 - 10:24 AM
That code throw an error, because the page I was liking didn't exist on Facebook.
#7
Posted 28 February 2011 - 10:24 AM
Quote
I don't understand what you mean here. The page doesn't "exist" on Facebook. When you "like" a page, it just passes the URL to FB and lists it as something you liked on your FB wall.
#8
Posted 28 February 2011 - 10:39 AM
<iframe src="http://www.facebook.com/plugins/like.php?href=http://demo.lemonstandapp.com<?= $product->page_url('/product') ?>&layout=standard&show_faces=true&width=450&action=like&colorscheme=light&height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe>
The demo refreshes itself every hour, but if you catch it in time you can see it working here: http://demo.lemonsta...duct/appletree/
If you're having problems, inspect the like button and see if the URL is outputting correctly. If you're getting an error its probably because the URL is not formatted correctly.
#10
Posted 01 December 2011 - 10:50 AM
Cheers,
Michael
#11
Posted 06 December 2011 - 10:05 AM
kaykills, on 01 December 2011 - 10:50 AM, said:
Michael,
Can you post a link please?

Help















