Sharing your Webpage on Facebook

22 06 2010

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&gt;
<script src=”http://static.ak.fbcdn.net/connect.php/js/FB.Share&#8221; type=”text/javascript”></script>

Make sure you replace http://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:

Facebook sharing!

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!


Actions

Information

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s




%d bloggers like this: