Why use an authentication app for Facebook?
Facebook lets you choose a security key, a text message (SMS) or a third-party authentication app as your second step. An authentication app creates a fresh 6-digit code every 30 seconds, works without mobile signal, and cannot be redirected by a SIM swap. Any TOTP authenticator works, including our Facebook 2FA code generator in your browser.
How to turn on Facebook two-factor authentication
On a computer, Facebook's help centre describes these steps:
- Click your profile picture in the top right.
- Click Settings and privacy, then Settings.
- Click Accounts Center, then Password and security.
- Click Two-factor authentication, then choose the account you want to update.
- Choose authentication app as your security method and follow the on-screen instructions.
- Facebook shows a QR code to scan. If you cannot scan it, look for the option to show or copy the key as text, and save that key safely.
- Enter the 6-digit code from your authenticator to confirm.
In the Facebook mobile app, the same settings live in Accounts Center under Password and security.
Menu names can change over time. If a step looks different, search the service's official help pages for "two-factor authentication".
How to get your Facebook 2FA code online
- Open the 2FA code generator in a new tab.
- Paste the Facebook key into the box, or click Scan QR or the upload button to read the QR code.
- Your 6-digit Facebook 2FA code appears instantly, with a countdown to the next code.
- Copy the code and enter it in Facebook before the timer runs out.
Save the key with a name such as "Facebook" using Save on this device, so you do not need to paste it each time on your own computer.
Facebook recovery codes
Facebook can give you 10 recovery login codes to use when you cannot reach your phone or authenticator. Get them in the two-factor authentication settings after setup, and store them somewhere safe and offline, such as a password manager or a printed sheet at home.
If you ever lose your authenticator, log in with one of these codes and then set up the authentication app again. Read more in how to recover a 2FA account.
Watch out for Facebook 2FA scams
Scammers send messages that look like they come from Facebook or Meta, asking for your login code "to verify your page" or "to stop your account being disabled". Facebook will never ask you to send your 2FA code, secret key or recovery codes in a message. Never type your code into a site you reached from a link in a message.
Our 2FA code generator is an independent tool and is not affiliated with Facebook or Meta.
Frequently asked questions
How do I get my Facebook 2FA code?
Open the authentication app you used when turning on Facebook two-factor authentication, or paste the same Facebook secret key into our 2FA code generator. It shows the current 6-digit code.
Where is the Facebook 2FA key?
Facebook shows the key during setup, together with the QR code, when you choose an authentication app. It is not shown again later, so save it when you set up 2FA.
What if I lost my Facebook authentication app?
Log in with one of your Facebook recovery codes, or use another login method you added. Then set up the authentication app again to get a new key.
Is the Facebook 2FA code generator free?
Yes. Our 2FA code generator is free, needs no sign-up, and creates codes in your browser without sending your key anywhere.