removed unused code. fixed the facebook permissions