Sunday, October 31, 2010

Adding Face book Like Button to your asp.net application

It is now very easy to put Facebook like button on your asp.net application.
Follow these simple steps....

How this like functionality works?
Description  – You can add the Facebook like button in two ways.
1. Using XFBML
2. Face book provides a php plugin.For that we need to pass the  absolute URL path (It may be a web page OR  Image path).


This article will explain about the second option.This is the simple code snippet you need to place in your page and just pass the url u like...

<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.blogger.com%2Fblog-options-basic.g%3FblogID%3D726200473503193201&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe>



In my case I am passing  this link  “http%3A%2F%2Fwww.blogger.com%2Fblog-options-basic.g%3FblogID%3D726200473503193201” .

Facebook provides some layout style for 'Like' button

 There are three types of  Layout Style
1.     Standard
2.     Button_Count
3.     Box_Count

and it also provides the following options to the users 'Show Faces','Width','','Font ', 'Color Scheme'.
If you click  on like button. It will  show a pop up for login only if your not logged in before. As soon as you enter login credentials this link is posted on  your Face book ‘WALL ’  RECENT ACTIVITY   as liked link.


For more details 
Refer link...
http://developers.facebook.com/docs/reference/plugins/like



1 comment:

  1. Need real facebook like....................I write small utility programs that can be integrated in .http://globalsocialplan.com

    ReplyDelete