how to add like feature of facebook and follow us feature of twitter from c# window application??

Unanswered how to add like feature of facebook and follow us feature of twitter from c# window application??

  • quarta-feira, 29 de fevereiro de 2012 06:43
     
     

    Hi All,

          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.

     http://in.news.yahoo.com/sonia-goes-abroad-routine-check-return-4-5-124844333.html

    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.

    http://github.com/facebook-csharp-sdk

    i hope for the answer as soon as possible.

    thank you for your support in advance.


    • Editado Vikastrust2005 quarta-feira, 29 de fevereiro de 2012 06:44 edit
    •  

Todas as Respostas

  • quarta-feira, 29 de fevereiro de 2012 12:40
     
     

    Facebook Like
    https://developers.facebook.com/docs/reference/plugins/like/

    Twitter follow
    https://dev.twitter.com/docs/follow-button

    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.

  • quinta-feira, 1 de março de 2012 05:44
     
     

    navcode,

     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.

  • sexta-feira, 2 de março de 2012 03:34
    Moderador
     
     

    Hi,

    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:

    http://www.facebook.com/plugins/like.php?href=<YOUR-SUBJECT>

    More parameters, refer to:

    http://developers.facebook.com/docs/reference/plugins/like-box/

    The another choice is use WebBrowser in your windows application to execute JS function or some web pages.

    Hope it can help you.


    Please mark the replies as answers if they help or unmark if not. If you have any feedback about my replies, please contact msdnmg@microsoft.com Microsoft One Code Framework


  • sexta-feira, 2 de março de 2012 07:36
     
     

     hi Arwind,

      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 (vikastrust2005jobs@gmail.com)

    thank you for your help.


    • Editado Vikastrust2005 sexta-feira, 2 de março de 2012 07:41 edit
    •  
  • sexta-feira, 9 de março de 2012 12:10
     
     

    hi Vikastrust2005,

    for sharing there is API available for almost all social networking site .

    for facebook you can use-

    http://www.facebook.com/sharer.php?u=<<ContentURL>>

    for facebook

    http://twitter.com/home?status=<<tweet+contentURL>>

    you can find more information on below link-

    http://www.business.com/b2bmarketing/create-share-buttons/

    http://stackoverflow.com/questions/4952993/share-using-facebook-c-sharp-sdk