If someone has logged in to your account and now you can't access the account. You can try - click on the forgot password. Facebook will provide two options of recovery depending upon whatever way you provided to Facebook for recovery either a phone number or alternate email ID. Choose one and then you can change the password and get an option to logout from all the other devices if on any other device your account is logged in. This is the way of recovery.