Handle login state in the new facebook sdk

this code handle the session stating automaticcaly
dont need to log again if you close the application and open it again.