adding more code for the facebook flow