This guide shows you how to use the Google Authenticator app to generate the six-digit security codes Facebook asks for when you log in or try something sensitive. By the end, you’ll have two-factor authentication (2FA) set up so that a code from your phone is required alongside your password, making it much harder for anyone else to get into your account.
What You’ll Need
- A smartphone or tablet with the Google Authenticator app installed (available for iOS and Android).
- Your Facebook password and access to the email address or phone number linked to your account.
- Your Facebook app or a web browser on a computer or phone.
Step-by-Step
- Install Google Authenticator. Open the App Store (iPhone) or Google Play Store (Android), search for “Google Authenticator,” and install the official app from Google LLC.
- Open Facebook and go to Security Settings. On the Facebook app, tap your profile picture (bottom-right on mobile, top-right on desktop), then select Settings & privacy > Settings. On the left menu, choose Security and login.
- Find “Use two-factor authentication.” Scroll down to the “Two-factor authentication” section and click Edit next to it. Facebook may ask you to re-enter your password to continue.
- Choose the authentication app option. You’ll see a few methods (text message, security key, etc.). Select Authentication app or Use a third-party authentication app and click Continue.
- Open Google Authenticator and add an account. On your phone, open the Google Authenticator app. Tap the + (plus) icon, then choose Scan QR code or Enter a setup key.
- Scan the QR code shown by Facebook. Facebook will display a QR code on your screen. Point your phone’s camera at it. If you chose “Enter a setup key,” type the alphanumeric key that Facebook shows into the app. After scanning or entering, Google Authenticator will add “Facebook” to its list and start generating a six-digit code that refreshes every 30 seconds.
- Enter the current code on Facebook. Back on Facebook, you’ll see a field asking for the six-digit code. Type the number that Google Authenticator is currently showing (make sure it’s the one for “Facebook”). Click Continue or Confirm.
- Save your backup codes. Facebook will show you a set of one-time backup codes. Store these somewhere safe (password manager, printed paper, etc.). You can use them if you ever lose your phone. Click Done or Finish after saving them.
- Test it. Log out of Facebook and log back in. You should be asked for your password and then a code from Google Authenticator. Enter the current code to confirm everything works.
Common Mistakes
- Entering an old code. Google Authenticator codes expire every 30 seconds. If you type a code that just changed, Facebook will reject it. Wait for the next one and type it quickly.
- Scanning the wrong QR code. Make sure you’re scanning the QR code that Facebook displays, not one from another service. Each service has its own unique code.
- Deleting the app entry before you finish. If you remove the Facebook entry from Google Authenticator before completing setup, you’ll lose the ability to generate codes and may get locked out.
- Ignoring backup codes. Skipping the backup codes step is risky. If your phone is lost, you’ll have a hard time getting into your account.
Tips
- Keep your phone’s clock accurate. Google Authenticator relies on your device’s time. If the time is off, codes won’t work. Enable automatic date & time in your phone settings.
- Use a password manager to store backup codes. Most password managers have a section for notes or secure files. Store the backup codes there, plus a printed copy in a safe place.
- Add more than one device. You can scan the same QR code on a second phone (or a tablet) to have codes available on multiple devices. Do this during setup or later by re-adding the account.
- Log out of Facebook on old devices. After enabling 2FA, review the “Where you’re logged in” section in Security and login, and remove devices you no longer use.
Troubleshooting
I don’t see the QR code option. Some Facebook accounts, especially those with certain security settings, may only offer text message or security key options. If so, first set up text message 2FA, then go back and see if the authentication app option appears. You can also try using the Facebook app on your phone rather than the website.
The code I enter is rejected. First, check that you’re entering the code for “Facebook” and not another account in Google Authenticator. Then check your phone’s time settings (Settings > Date & Time > Automatic). If the code is still rejected, wait for the next 30-second cycle and try again.
I lost my phone and can’t get codes. Use one of your backup codes. If you don’t have them, you’ll need to use Facebook’s identity recovery process. Go to facebook.com/login/identify and follow the steps, which may include confirming your email, phone number, or uploading an ID. Facebook will then let you disable 2FA and set it up again.
Google Authenticator isn’t showing a code for Facebook. If you accidentally deleted the entry, you’ll need to re-add it. On Facebook, go to Security & login > Use two-factor authentication > Edit, and choose “Change” or “Set up” next to the authentication app. Facebook will show a new QR code. Scan it, and the entry will reappear.
I switched to a new phone. Install Google Authenticator on the new phone. Then, on the old phone (if you still have it), open the app, tap the three-dot menu, and choose “Transfer accounts” > “Export accounts.” Scan the QR code with the new phone. If you no longer have the old phone, use your backup codes to log into Facebook, then go to Security & login and re-set up the authenticator with a new QR code.
Frequently Asked Questions
Can I use Google Authenticator without a data connection? Yes. Google Authenticator generates codes locally on your device, so it works even in airplane mode. You only need a connection to set it up (to scan the QR code) and to log into Facebook.
What if I have multiple Facebook accounts? You can add each one to Google Authenticator separately. Scan the QR code for each account during its setup. The app will list them separately, and you’ll select the correct one when logging in.
Is Google Authenticator the same as Facebook’s built-in code generator? No. Facebook has its own “Code Generator” feature, but Google Authenticator is a third-party app that works with many services. This guide uses Google Authenticator, but Facebook also supports other apps like Authy or Duo.
Can I still get text message codes after setting up Google Authenticator? Yes, you can keep text message 2FA as a backup. Facebook allows multiple methods. Just go to Security & login > Two-factor authentication and add a phone number.
What happens if I uninstall Google Authenticator? You’ll lose the ability to generate codes. Before uninstalling, make sure you have backup codes or have disabled 2FA on Facebook. Otherwise, you may be locked out.
Does Google Authenticator work on a computer? No, it’s a mobile app. However, you can use a desktop app like WinAuth or a browser extension that supports TOTP codes, but the setup process is the same—you’ll scan the QR code with that app.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- Google Not Working in Chrome? Key Fixes
- Node.js Hosting: Managed Host or Vercel?
- iOS 13 Stuck on Dark Mode? Fix It Here
- Windows 10/11 Sleep Mode Shortcut: Create & Use
- VPN on Your Smartphone: Should You Install One?
- Open Source Notes App: Pick the Right One