Facebook is probably going to be mad about this, but whatever. Clickjacking the Facebook Like Button is so simple that anyone could figure it out within a few minutes with some really basic JS. I put together a really basic example, similar to what the major clickjacking scam this weekend was doing. I used jQuery just because I was too lazy to remove it from my default page template, but it would be very simple to do it without as well. Example is up here.
Basically all they do is set the Like Buttons iframe opacity to 0 and positioning to absolute, then track mouse movements, keeping the hidden iframe underneath your cursor. With a little tweaking of positioning you get the actual button part of the iframe always under the cursor, so any clicks register as a click on there.
The only one disadvantage is that if people click more than once, it will trigger an unlike. You could easily get around this one too by setting a cookie / localStorage after the first click.
More information in this post on Mashable about what the clickjacking scam was this holiday weekend.
P.S. I put the example on a domain I don’t use just incase facebook decides to block it or something
Boston native, OG facebook platform developer (Free Gifts), OG iPhone developer (Tap Tap Revenge), exec producer, love javascript, dinosaurs, cats, and burritos