Initial working version with fb integration