Things you need:
1. A Facebook share button, if you don’t have one use the image link below. [
]
http://usegpt.in/img/share-me-fb-button.jpg
Here is how you can add Facebook share-me in just 5 simple steps:
For Blogger blogs:
1. Write your blog post

2. Publish it

3. Now copy the published blog URL and Edit the published page again. [Eg. http://sharath-g.blogspot.com/2009/10/testing-facebook-share-plugin.html]

4. Grab this code and put in your URL
<a href="http://www.facebook.com/sharer.php?u=ENTERYOURPOSTURLHERE"><img src="http://usegpt.in/img/share-me-fb-button.jpg" alt="share to facebook button"></a>
5: Add the code to your post and republish the blog :)

Now try adding using the Facebook share button.

For Wordpress blogs:
If you are adding Facebook share me to your Theme file, just add:
<a href="http://www.facebook.com/sharer.php?u=<?php echo 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] . ' ' . $_SERVER['QUERY_STRING']; ?>"><img src="http://usegpt.in/img/share-me-fb-button.jpg" alt="share to facebook button"></a>
This below script is a PHP script which automatically inputs the URL of the page.
“
<?php echo 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] . ' ' . $_SERVER['QUERY_STRING']; ?>“
Now isn’t that easy? :) Do you also have any such easy tips and tricks? Share it with us by posting comments below or you can contact us to send a tip!

Comments are closed.