fixed bugs with fb loging, removed unused filed