Facebook's Code Generator is only one of many layers of Facebook security.
Be sure to add several valid contact details, secure your Facebook account, and rebuild your profile from scratch.
Option 1: Recover Your Account From Its Profile Page If you have access to another Facebook account, for example, that of a friend or family member, and you can access your account's profile page that way because you're Facebook friends, you can use this option.
It only takes a few minutes to enable two-factor authentication and save Facebook recovery codes.
Submit a request to Facebook.
You may be able to choose between email or phone recovery.