10387 Posts in 2198 Topics by 1712 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 2078 Views |
-
Facebook Like Button

23 April 2010 at 10:34pm
The just launch Like Button for Facebook.
http://developers.facebook.com/docs/reference/plugins/like
But with this code your site will be liked no every single page. So it a need for a dynamic url. Something with "$page_url" I guess...
I found this for WordPress
<iframe src="http://www.facebook.com/plugins/like.php?href=<?php echo urlencode(get_permalink($post->ID)); ?>&layout=standard&show-faces=true&width=500&action=like&colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:500px; height:60px"></iframe>
-
Re: Facebook Like Button

23 April 2010 at 10:39pm
Use $AbsoluteLink ?
Eg. put something like this in the template:
<iframe src="http://www.facebook.com/plugins/like.php?href=$AbsoluteLink&layout=standard&show-faces=true&width=500&action=like&colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:500px; height:60px"></iframe>
| 2078 Views | ||
|
Page:
1
|
Go to Top |


