jquery detect click facebook like button jquery detect click facebook like button jquery detect click facebook like button

<div class="fb-like" data-href="https://your-website.com/article" data-width="" data-layout="button_count" data-action="like" data-size="small" data-share="false"></div> Now, add this JavaScript (with jQuery):

Now go build that social analytics dashboard you’ve been planning! Drop a comment below – I’ll cover those next.

If you’ve tried the standard onclick event, you already know it doesn’t work. The Like button is embedded inside an iframe (sandboxed from your page). You cannot directly attach a jQuery click handler to elements inside an iframe from the parent document.

Jquery Detect Click Facebook Like Button Access

<div class="fb-like" data-href="https://your-website.com/article" data-width="" data-layout="button_count" data-action="like" data-size="small" data-share="false"></div> Now, add this JavaScript (with jQuery):

Now go build that social analytics dashboard you’ve been planning! Drop a comment below – I’ll cover those next. jquery detect click facebook like button

If you’ve tried the standard onclick event, you already know it doesn’t work. The Like button is embedded inside an iframe (sandboxed from your page). You cannot directly attach a jQuery click handler to elements inside an iframe from the parent document. &lt;div class="fb-like" data-href="https://your-website