14 years
For anyone using WordPress for their hostel's website, this is a plugin to use for the Facebook Like button:
http://wordpress.org/extend/plugins/simple-facebook-connect/
Facebook now has a "like" button to go with their new features.
http://developers.facebook.com/docs/reference/plugins/like
If you click the "like" button on a website, it posts to your Facebook stream. Since Facebook is the #2 or #1 site on the Web, I think it's a good idea to encourage people to post hostel's website to their Facebook streams.
There is an example of the "like" button on the HM homepage:
http://www.hostelmanagement.com/
Instructions for WordPress:
http://blog.slaven.net.au/archives/2010/04/22/how-to-put-the-facebook-like-button-on-your-wordpress-blog/
Here is the sample code:
The button will say "recommend" -- to change the button text to "like", change action=recommend to action=like.
See the dynamic PHP version in action at the bottom of any of these hostel listings.
If anyone would like help adding the like button to their hostel's website, post questions here...
14 years
For anyone using WordPress for their hostel's website, this is a plugin to use for the Facebook Like button:
http://wordpress.org/extend/plugins/simple-facebook-connect/
14 years
One more tip:
In the code, change "height:px" to "height:60px"... or however tall you want the area to be. 60px should be enough to show to profile images below the button. 30px should hide the profile images.
14 years
I've added an experimental Facebook "Recommend" button to forum threads. What do people think? Should I leave it or remove it? Or do people prefer it on a different area of the pages?
Here's a screenshot:
(or scroll down)
14 years
Not bad. Where'd the plugin come from? vbSEO or from vb.org?
Just code inserted into the SHOWPOST template -- something like this:
14 years
Found the thread on vb.org. Got an error like some ppl are getting. I'll have to play with that. I'm not using vbseo yet. Are you planning on switching to vb4?
14 years
Found the thread on vb.org. Got an error like some ppl are getting. I'll have to play with that. I'm not using vbseo yet. Are you planning on switching to vb4?
The trick is to insert the page's dynamic URL into the Facebook code. With vbSEO installed, the URLs are rewritten so the variable is $_SERVER[VBSEO_URI]. I'm not sure what the variable is without vbSEO.
I'm going to wait until my license runs out to upgrade to version 4...
14 years
I just added the code to some of my site's pages (just plain html, nothing fancy like Wordpress) and get the following error when I click on the link:
You may not use Facebook URLs with the Open Graph yet.
Here's one of the pages I added the link to: http://www.bugamerica.com/destinations/usa/california/san-francisco/index.html
14 years
If you look in your code, the URL href is:
http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.facebook.com...
The link being "liked" is on Facebook.com, creating an error. I'll send you a code snippet by PM that should work for that page.
14 years
I just made a super-quick tutorial on how to make a Facebook Like button in PHP. That code should work for any server that has PHP on it.
If the file extension isn't .php (e.g., .html) the server can be set to parse PHP in HTML files.
Related Pages
Log in to join discussion