The below script adds Facebook Like button to your website despite the scripting language used, so it works with coldfusion, php, jsp, ruby on rails, etc. This implementation is based on Graph API. Also the code below can be used to add Facebook Like Button to wordpress and blogger blogs.
The settings in red can be customized to fit with your website, the code is below:
replace www.yourwebsite to your website address.
showfaces is set to true if you want the faces of the people who pressed on like button to appear on the like widget, else set it to false.
The size of the like widget is set based on the height and width arguments.
Please note that you don't need any programming skills to implement this code, just add this code to your web page and it will work.
In case you have any question please comment to this article.
Facebook documentation on this link
The settings in red can be customized to fit with your website, the code is below:
<iframe
src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.yourwebsite.com%2F&
layout=standard&
show_faces=true&
width=230&
action=like&
colorscheme=light&
height=95"
scrolling="no"
frameborder="0" s
tyle="border:none;
overflow:hidden;
width:230px;
height:95px;"
allowtransparency="true">
</iframe>
replace www.yourwebsite to your website address.
showfaces is set to true if you want the faces of the people who pressed on like button to appear on the like widget, else set it to false.
The size of the like widget is set based on the height and width arguments.
Please note that you don't need any programming skills to implement this code, just add this code to your web page and it will work.
In case you have any question please comment to this article.
Facebook documentation on this link
how do you handle this if you would like it to be dynamic?
ReplyDeleteI made the link a variable (using Cold Fusion to get the URL), it's working.
ReplyDelete