Facebook Two-Factor Authentication: How to Set It Up
Turn on Facebook two-factor authentication in Accounts Center: compare security keys, authentication apps and SMS codes, save recovery codes and avoid mistakes.

Your Facebook password is only one layer of protection. If it leaks in a data breach or someone tricks you into typing it on a phishing page, that layer is gone. Two-factor authentication adds a second check: a code, a security key or an approval that a stranger is unlikely to have. This guide explains how two-factor authentication works on Facebook, which method to choose, how to turn it on and how to keep a way back in if you lose your phone.
Short answer: On Facebook, go to Settings & privacy > Settings > Accounts Center > Password and security > Two-factor authentication, choose your account and pick a method: a security key, an authentication app or text message (SMS) codes. Then save your recovery codes somewhere safe so you can still log in without your phone.
How two-factor authentication works on Facebook
According to the Facebook Help Center, once two-factor authentication is on, Facebook asks for a special login code or for you to confirm the login whenever someone tries to access your account from a browser or mobile device it doesn't recognize. You can also get alerts about unrecognized logins.
The idea is simple: even if someone knows your password, they also need your second factor to get in.
Choose your method
When you turn on two-factor authentication, Facebook asks you to choose one of three security methods:
- Security key: a small physical key you tap on a compatible device. It's strong protection against phishing pages, because the key only works with the real site.
- Authentication app: an app on your phone that creates login codes, even without a mobile signal.
- Text message (SMS): Facebook texts a six-digit code to your mobile number each time you log in from an unrecognized device or browser.
SMS is the easiest to set up, but it depends on your phone number. If your SIM is lost, stolen or moved to another card without your permission, the codes go with it. An authentication app or a security key doesn't have that weakness, so many people use SMS only as a backup.
How to turn on two-factor authentication
These are the steps from the Facebook Help Center for a computer. The mobile apps use the same Accounts Center sections.
- Click your profile picture in the top right, then Settings & privacy.
- Click Settings.
- Click Accounts Center, then Password and security.
- Click Two-factor authentication, then the account you want to update.
- Choose the security method you want to add and follow the on-screen instructions.

Pick a method that suits you: a security key, an authenticator app or codes sent by SMS.
Facebook notes that it's gradually moving people to Meta accounts, so you may see Accounts Center or Meta account settings as the place to manage your account. Menu names can also differ slightly between app versions.
If you choose text messages
The Help Center explains that you can use a mobile number already on your account or add a new one. After you turn on SMS codes, Facebook asks you to set up a second security feature, such as a security key or recovery codes. That way you're covered if your phone is lost or stolen.
Use a number you'll keep for years. A one-time number isn't a good fit here: you won't be able to receive codes on it later.
Save your recovery codes
Facebook lets you get a set of 10 recovery login codes to use when you don't have your phone with you. Each code works once. Set them up as soon as two-factor authentication is on:
- Print them or write them down and keep them somewhere private and offline.
- Don't store them in the same place as your password.
- Don't take a screenshot that syncs to a shared photo album.
- When you've used most of them, get a fresh set.

Keep your recovery codes somewhere safe and offline, so you can still get in if you lose your phone.
Recognized devices and browsers
If the browser or device you're using isn't saved yet, Facebook asks you to save it when you turn on two-factor authentication. Next time you log in from it, you won't be asked for a code. The Help Center adds two warnings:
- Don't save a public or shared computer that other people can use.
- If you use private browsing or clear your history every time you close the browser, you may need to enter a code at every login.
Facebook also suggests creating a passkey for an easier and more secure way to log in.
Signed up with a one-time number? Do this now
If you created a Facebook account with a virtual number from an app like GetCode, that number was for a single verification. After the session closes, you can't receive another code on it, and one-time numbers may later be assigned to someone else. So:
- Add an email address you control to the account.
- Turn on two-factor authentication with an authentication app or a security key, not SMS to the one-time number.
- Save your recovery codes.
- If you add a phone number for SMS codes, use one you'll keep.
Using any number for spam, fraud or accounts in someone else's name is not allowed. For accounts tied to your identity or money, use your own number.
Common mistakes
- Relying on SMS alone: add an authentication app or a security key as well.
- Skipping recovery codes: without them, losing your phone can lock you out.
- Saving a shared computer: anyone using it could skip the code step.
- Sharing a login code: don't send a login code to anyone. A person who asks for it is likely trying to get into your account.
- Using a number you won't keep: codes go to that number for as long as it's on your account.
Frequently asked questions
Where is two-factor authentication on Facebook?
Go to Settings & privacy > Settings > Accounts Center > Password and security > Two-factor authentication, then choose your account.
Which method should I choose?
An authentication app or a security key gives stronger protection than SMS, because it doesn't depend on your phone number. SMS is a reasonable backup.
Does Facebook charge for SMS codes?
The Help Center says Facebook doesn't charge for two-factor SMS codes, but your carrier's standard messaging rates may apply.
How many digits is the SMS code?
Two-factor SMS security codes from Facebook are six digits.
What if I lose my phone?
Use one of your recovery codes or another method you've set up, such as a security key. That's why it's worth adding a second method right away.
Conclusion
Turning on two-factor authentication takes a few minutes in Accounts Center. Pick an authentication app or a security key as your main method, keep SMS as a backup on a number you'll keep, and save your recovery codes offline. If you'd rather not share your personal number when you sign up for other apps, you can receive one-time verification codes with GetCode, available on the App Store and Google Play. See the supported platforms on the Services page.