Two-Factor Authentication is a layer of protection that saves your account from being hacked. When you enable this feature, you need to enter a code to enter the account. If you don’t get the code then how to get a code generator for Facebook? Try these methods:
1. Wait for at least 60 secs to get the code.
2. When you enable the Two-Factor Authentication then you will receive the list of emergency codes, you can try these codes.
3. Try to use another device
4. Check your profile details and credentials properly.