Sharing your Webpage on Facebook
With Facebook becoming a trend setter in social networking, it is hardly surprising to see websites coming up with ways to allow users to share content through it. In this post, I will show how you can easily place a Facebook sharing link and place it onto any page of yours.
To do this, firstly, you will require some basic knowledge in HTML. Open up your web page editor and just place in the following code into the location where you want the sharing link to be at:
<a name=”fb_share” type=”button_count” share_url=”www.example.com” href=”http://www.facebook.com/sharer.php?”>Share</a>
<script src=”http://static.ak.fbcdn.net/connect.php/js/FB.Share” type=”text/javascript”></script>
Make sure you replace www.example.com with your own site URL to ensure that it works. Once successful, you should be seeing a result like this below:
Share
By clicking on it, you will be redirected to Facebook and you should be seeing a result like this:
And that is all you need to share your site on Facebook. Will be coming up with more details on the Facebook API such as the “Like Box” coming here soon!
