How to turn on two-factor authentication on Facebook (and stop your account getting hacked)
Step-by-step: turn on two-factor authentication (2FA) on Facebook from your phone, choose the safest method, save your recovery codes, and what to do if you lose your phone. Takes about five minutes.
By Fazle Rabbi Tamim, Founder & CEO, Sellora Tech
Tutorial2 min read
Hacked Facebook accounts are one of the most common tech problems people face, and losing a page or account you've built for years is painful. Two-factor authentication (2FA) is the single best protection: even if someone steals your password, they can't log in without a second code that only you have.
What two-factor authentication does
Normally, a password is all someone needs to get into your account. With 2FA turned on, Facebook also asks for a 6-digit code from your phone whenever someone logs in from a new device. A hacker with your password still gets stuck.
Step by step (Facebook app)
- Menu ☰
- Settings & privacy
- Settings
- Accounts Center
- Password and security
- Two-factor authentication
- Open the Facebook app and tap Menu (☰, or your profile picture on some phones).
- Tap Settings & privacy, then Settings.
- Tap Accounts Center (near the top), then Password and security.
- Tap Two-factor authentication and choose your Facebook account.
- Pick a method (see below). We recommend Authentication app.
- Follow the on-screen steps, enter the code to confirm, and you're done.
Which method should you choose?
- Authentication app (best): an app like Google Authenticator or Microsoft Authenticator creates a new code every 30 seconds. It works without SMS and can't be stolen through SIM-swap tricks.
- SMS text message (okay): Facebook texts you a code. Easy, but weaker: scammers sometimes trick people into reading out SMS codes.
- Security key (strongest): a small physical key you plug in or tap. Great for business pages and admins.
Don't skip this: save your recovery codes
After turning on 2FA, Facebook offers recovery codes. These let you log in if you lose your phone. Find them under Two-factor authentication → Additional methods → Recovery codes, then write them on paper or save them somewhere safe (not in your phone's gallery).
Never share a login code with anyone. Facebook, Meta "support" or a friend in trouble will never need it. If someone asks for a code you just received, they're trying to take over your account.
Extra steps that keep hackers out
- Use a strong, unique password for Facebook that you don't use anywhere else.
- Check where you're logged in: in Password and security → Where you're logged in, log out of any device you don't recognise.
- Turn on login alerts so you're notified about new logins.
- Secure your email too, with its own 2FA. Whoever controls your email can often reset your Facebook password.
- Ignore "your page will be disabled" messages. Fake copyright and policy warnings are a common trick to steal page admins' logins.
If your account is already hacked
Go to facebook.com/hacked from a browser and follow the steps to secure your account. If the hacker changed your email or phone, look for the email from Facebook about the change — it usually includes a link to undo it.
Want more protection tips? Read how to avoid OTP and PIN scams.
- Security
- Two-factor authentication
- How-to
- Account hacked
Keep reading
All posts