facebook-is-rubbishWell, the google +1 works fine, the tweet this button is cool, but really.....FHTML is rubbish. Basically facebook never picks up the current url through fhtml, unless I'm even more stupid than I think I am. Here's how to get facebook to take the right url for each page.

When you use the facebook like button you expect it to take the url of the page that your visitor is looking at. Well for the last 6 months that doesn't seem to happen and when people click on like they either find themselves liking facebook or they get an error.

So lets not trust fbhml and fill in the href field with the right url of the page.

Still take the xfbml option as this will allow people to comment...and such, but, don't trust facebook to fill in the url of the page for you!

If you are using wordpress or joomla or any other content management system where you can insert code into your pages, fill in the gap between <a href="/<put the line below here>"

http://<?php echo($_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']);?>

This will use php to find the current url of your page and tell facebook which page people are looking at and make it work how it should! God bless twitter, + and all the other things that work how they should!

Category: General

Newsletter Signup

Latest Posts

Google+ Timeline Feed for your Website Google+ Timeline Feed for your Website 2012-05-11 - I was asked earlier today to create a Google+ widget for a website to replace a twitt... More detail
Run Facebook Messenger on Windows Vista Run Facebook Messenger on Windows Vista 2012-04-19 - Facebook has just released it's new messenger for windows but it only runs on Windo... More detail
Translate K2store Product Attributes with Joomfish Translate K2store Product Attributes with Joomfish 2011-11-03 - If you have a K2store and your site is in multiple languages, you might have found th... More detail
French Translations for K2store French Translations for K2store 2011-11-02 - I have been working recently with the K2 component/plugin K2store. As a simple sho... More detail
How I Upgraded to Joomla 1.7 How I Upgraded to Joomla 1.7 2011-09-25 - Inspired by Robert Vining over at www.joomstew.com and the fact that I am building mo... More detail

Twitter Stuff