More Customers. Less Cost. Zero Headaches.
Affordable, Full Service Customer Generation.

free-estimate

Fact:

Today there will be millions of searches performed on the Internet, many of them looking for exactly what you are selling.

Get Found

Utah SEO Company

After serving hundreds of businesses in Utah and throughout the United States why not start with our range of professional services now?

Call 801-747-9736

 

Let's get social

How to Add a Facebook Recommend Button with Dynamic URL's

facebook recommend button

After hours of searching and trying many techniques I have found the snippet of code you need to easily add the Facebook recommend button to every page of a dynamicly generated page. Should work with Joomla, Wordpress, Drupal and any other PHP based CMS.

Here is the code you need to paste:

 <iframe src="http://www.facebook.com/widgets/like.php?href=<?php  echo "http://" . $_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']; ?>&layout=button_count&show_faces=false&width=110&action=recommend&font=tahoma&colorscheme=light&height=30"
scrolling="no" frameborder="0" style="border:none; width:125px; height:30px" allowTransparency="true"></iframe>

This is the code I have used on this page to get the "Recommend" button in the top right hand side of the article below the star rating. Let me know if you have any trouble getting it to work.

Last modified on Wednesday, 03 August 2011 23:10