Triggering a button as teh page load with jquery
===

I want to trigger a facebook like button as soon as the page loads.

This is script relating to facebook like button:

 

     <script src="http://connect.facebook.net/en_US/all.js"></script>
    
    <script>
      FB.init({
        status : true, // check login status
        cookie : true, // enable cookies to allow the server to access the session
        xfbml  : true  // parse XFBML
      });
    </script>

The facebook button:

    <fb:like href="http://ecommercedeveloper.com" layout="standard" show_faces="true" width="400" action="like" font="segoe ui" colorscheme="light" id="facebook" />

My script, at the bottom of the page:

    <script>
     (function($){
       
         $('fb:like').trigger('click');
         
     })(jQuery);
</script>

However whenever the script loads the page doesnt seem to be pressed. I dont care to hear about any other alternative way to trigger that click, but which isnt manual