4words is a project mainly written in RUBY and COFFEESCRIPT, it's free.
To generate the map data: rake squares:import
add facebook variables to heroku config