Add base code and Facebook authentication