What is Code Generator? How does it work?
Code Generator is part of an extra security feature called login approvals. If you turn on login approvals, you'll be asked for a unique security code each time you try to log into your Facebook account from a new computer or mobile phone. That way, nobody can log into your account without a code and password. Learn more about login approvals.
Code Generator is a part of the Facebook app and creates a security code every 30 seconds, even when you aren't connected to the internet. You'll use that code in addition to your password to log into Facebook. You can also use Code Generator if you ever need to reset your password.
To get your code on your Android:
From your Facebook app, tap
Scroll down and tap Code Generator
Use the code to log into Facebook
To get your code on your iPhone or iPad:
From your Facebook app, tap More on your iPhone or on your iPad
Scroll down and tap Code Generator
Use the code to log into Facebook