Working Facebook-integration (aka. monster commit of doom)