I have the following code that works great, but I want the page to automatically submit the Like feature without having to clicking on the Like ‘btn’. The reason is that I want to put a Like button in an email without the user having to click on a Like btn again on a webpage (bad user experience).
[CODE]<script src=”http://connect.facebook.net/en_US/all.js” async=””></script></div>
<script type=”text/javascript”>
window.fbAsyncInit = function () {
FB.init({ status: true, cookie: true, xfbml: true
});
};
(function () {
var e = document.createElement(‘script’); e.async = true;
e.src = document.location.protocol +
‘//connect.facebook.net/en_US/all.js’;
document.getElementById(‘fb-root’).appendChild(e);
} ());
</script>
<fb:like class=” fb_edge_widget_with_comment fb_iframe_widget” href=”http://www.url.com/” layout=”button_count” show_faces=”false” font=”arial”></fb:like>
Thank you.