locked
Handling fb Like RRS feed

  • Question

  • User1572535980 posted

    Hello,

    Is it possible to handle when the visitor Like the page?

    Thanks

    Monday, January 30, 2012 4:45 AM

Answers

  • User348806598 posted

    Hi,

    Are you trying to implement the like or share functionality as in facebook in your application. If so, you can do this by using jQuery ajax in your site.

    But if you want to know if somebody shared your site on google+ or facebook, I dont think technically this is possible unless facebook or google+ provide any api or service to check this.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, January 30, 2012 5:55 AM
  • User1509044783 posted

    Hello

    To add a handler for Facebook like button, your may refer to this post.

    http://stackoverflow.com/questions/7919403/click-facebook-like-button-and-be-taken-to-another-url

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, February 3, 2012 1:28 AM

All replies

  • User348806598 posted

    Hi,

    Please dont be too short in your description. Share some more information.

    Monday, January 30, 2012 5:02 AM
  • User1572535980 posted

    Is it possible to detect with JavaScript, when the visitor Like or Share the Site with Fb or Google+

    Monday, January 30, 2012 5:49 AM
  • User348806598 posted

    Hi,

    Are you trying to implement the like or share functionality as in facebook in your application. If so, you can do this by using jQuery ajax in your site.

    But if you want to know if somebody shared your site on google+ or facebook, I dont think technically this is possible unless facebook or google+ provide any api or service to check this.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, January 30, 2012 5:55 AM
  • User1572535980 posted

    I tried this fb api and should trigger when the visitor click on the Like button,  but it doesn't work?

    http://developers.facebook.com/docs/reference/javascript/FB.Event.subscribe/

            <fb:like send="true" width="450" />
            <script type="text/javascript">
                FB.Event.subscribe('edge.create',
                function (response) {
                alert('You liked the URL: ' + response);
                }
                );
            </script> 

    Monday, January 30, 2012 8:06 AM
  • User1509044783 posted

    Hello

    To add a handler for Facebook like button, your may refer to this post.

    http://stackoverflow.com/questions/7919403/click-facebook-like-button-and-be-taken-to-another-url

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, February 3, 2012 1:28 AM