The Lego Batman Heroes vs Villains application was used to promote the Warner Interactive game Lego Batman and encourages users to share which Lego Batman character they vote for using Facebook, Twitter & Pinterest.
The application consumes these results and builds a meter than displays the percentage results to the user. Each user has the choice or Batman and Superman for the heroes and Joker and Lex Luthor for the villains.
The application was built for several territories using an XML document and ran in a Facebook Tab application. It runs by retrieving the results of tweets from the twitter API and also counts and stores the amount of Facebook shares so that it can calculate the percentage of users that have voted for each character.
The application used PHP & MySQL and Ajax using JQuery to contact the server for the results.