Click here to Skip to main content
15,895,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Is it possible to get the javascript click event for the facebook like button? Actually in my page I have just added

<a id='Facebook' class="addthis_button_facebook_like" fb:like:layout="button_count"></a>


When I clicked on this anchor tag it is not taking the click event in my page, click is happening in the facebook that contained inside the iframe loaded inside the anchor tag by facebook. I am using click event js as

document.addEventListener('click', function(e) { }


How may times the fb like button clicked, that information is what I am looking for. But the click event itself not firing in my page. Please help me.

Thanking You in advance!!
Posted

1 solution

Follow this link:
Here all the specification are mentioned clearly.
Your requirement also illustrated here.
Even you don't want to code much,
simple HTML coding and Javascript.

Check out this[^]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900