I am looking for a solution to add "Like" feature of Facebook from my C# window Application.It means when I click on my window's form's "like" button, then it should check for the login of Facebook first and if the user is already logged in then the status on the facebook's wall should be shown and also the "like" button should disabled , and if user is not logged in then a new windows form Dialog Box should be opened with Facebook login page and when user logs in the facebook through this dialog form, this dialog form should be closed and the status of the facebook user's should be displayed on his/her profile's "Wall" that "User likes a link.". the same thing i have to do for twitter also.
it should work like this for e.g.
please see in the bottom of the News there are options to follow on twitter and like to facebook.
i guess i need and API to resolve the Issue so i have also visited this url and checked the code but it doen't fullfill my requrement.
i hope for the answer as soon as possible.
thank you for your support in advance.
- Diedit oleh Vikastrust2005 29 Februari 2012 6:44 edit
In the context of web application, all that you need to do is add 2 or 3 lines of HTML with little embedded JS in it. The facebook like and Twitter follow makes more sense for web applications and for windows application, I dont quite get your scenario. Dig more into the links above, you might get what you needed.
thanks for your reply but surely i need this feature in my C#.net window application.
Actually no. of images will be displayed on the screen and they will be showing in a slider with including facebook's "like" feature and twitter's "Follow us" link with each image.and the user will have option of "like" and "follow us" link each image in the same application (Not in any browser).
that's why i need these feature.
thanks again for ur help and i am waiting for more replies.
According to your description, i suggest you use FaceBook Like Uri to send "Like" functionality, such as Process.Start(url), the Facebook url string is like below:
More parameters, refer to:
The another choice is use WebBrowser in your windows application to execute JS function or some web pages.
Hope it can help you.
- Diedit oleh Arwind - MSFTModerator 02 Maret 2012 3:46
thanks for your reply,
actually, what i have to do in my application, when user click on "like" button, a pop-up of window should be opened for login in facebook and after the user logged in this pop-up should be closed automatically and the status on this windows form's image should show "vikas likes this." as well as in the facebook's wall status of this user but if the user is already(before clicking on the like button) logged in the facebook,the status should just show"vikas likes this." on my app as well as facbook.
what i want to say is we don't have to open new window or browser and user will have to click again on the facebook's "like" button on the redirected URL.
hope i explained my requirement.
and if possible please send me any running example or code to (firstname.lastname@example.org)
thank you for your help.
- Diedit oleh Vikastrust2005 02 Maret 2012 7:41 edit
for sharing there is API available for almost all social networking site .
for facebook you can use-
you can find more information on below link-