This guide walks you through every way to receive a Facebook security code — the six-digit login code or the code used for two-factor authentication (2FA). You’ll learn how to get the code sent via SMS, authenticator app, or email, and what to do if the code doesn’t arrive. Before starting, make sure you have access to the phone number, email address, or authenticator app associated with your Facebook account.
What You’ll Need
- Your Facebook username/email and password
- A phone that can receive SMS (for text message codes)
- An authenticator app like Google Authenticator or Duo (if you set one up)
- Access to the email address linked to your Facebook account
- A trusted device (a phone or computer where you’re already logged in)
Step-by-Step
Getting a Code via SMS (Text Message)
- Go to facebook.com and click the “Log in” button.
- Enter your email or phone number and password, then click “Log in.”
- If Facebook asks for a security check, you’ll see a screen that says “Enter the code from your phone” or “We sent a code to your phone.”
- Check your phone’s text messages. The code is a 6-digit number sent from Facebook (often from a number like 32665 or a short code).
- Enter that 6-digit code in the field on the login screen, then click “Continue.”
- If you don’t receive the text within a few minutes, click “Resend code” (if available) or “Didn’t get a code?” to try another method.
Getting a Code from an Authenticator App
- Open the authenticator app on your phone (Google Authenticator, Duo, etc.).
- Find the entry for Facebook. It will show a 6-digit code that changes every 30 seconds.
- Enter that code on the Facebook login screen.
- If the code has expired, wait for the next one to appear (usually within 30 seconds) and try again.
Getting a Code via Email
- On the login screen, click “Try another way” or “Need another way to get a code?”
- Choose “Email” as your method.
- Check the inbox of the email address linked to your Facebook account. Look for a message from Facebook with the subject “Your Facebook security code.”
- Open the email and copy the 6-digit code.
- Paste it into the login field and click “Continue.”
Getting a Code When You’re Already Logged In (for 2FA Setup)
- Click your profile picture in the top right corner of Facebook.
- Select “Settings & privacy,” then “Settings.”
- In the left menu, click “Security and login.”
- Under “Two-factor authentication,” click “Edit” next to “Use two-factor authentication.”
- Choose your preferred method (text message, authenticator app, or recovery codes).
- Follow the on-screen prompts to receive a test code and confirm it works.
Common Mistakes
- Entering an old code: Facebook codes expire quickly (usually within a few minutes). Always use the most recent code sent.
- Typing the code with spaces or dashes: Enter the code exactly as it appears, without any extra characters.
- Checking the wrong phone number: Make sure you’re checking the phone number that’s actually linked to your Facebook account. If you’ve changed numbers, you need to update it in your account settings first.
- Looking at the wrong email inbox: Check spam or junk folders if you don’t see the email. Sometimes Facebook emails get filtered.
- Using an authenticator app that’s out of sync: If the code is always wrong, the app’s clock may be off. Check the app’s settings for a “time correction” or “sync” option.
Tips
- Save recovery codes: Facebook gives you 10 recovery codes when you set up 2FA. Write them down and keep them somewhere safe. You can use one to log in if you lose your phone.
- Use an authenticator app instead of SMS: Text messages can be intercepted or delayed. Authenticator apps are more reliable and work offline.
- Keep your phone number updated: If you get a new number, update it in Facebook’s settings before you lose access to the old one.
- Check your internet connection: A weak connection can delay SMS delivery or prevent the login page from loading.
- Add a backup email: Having a second email on your account gives you another way to receive codes.
Troubleshooting
Code Not Received via Text
- Wait at least 5 minutes. SMS delivery can be delayed.
- Click “Resend code” on the login screen.
- Check if your phone has a signal and can receive texts from other numbers.
- If you have a carrier that blocks short codes, you may need to use a different method. Contact your carrier to allow Facebook’s short code.
Code Not Received via Email
- Check your spam or junk folder.
- Search your email for “Facebook security code” to find it.
- Make sure you’re checking the correct email address. If you have multiple emails, try the one you used to sign up.
Authenticator App Code Not Working
- Make sure your phone’s clock is set to automatic (network time). An incorrect clock can cause the code to be rejected.
- Try the next code that appears after 30 seconds.
- If you’ve restored your phone from a backup, the authenticator app may not have the correct secret. You’ll need to log in using a recovery code and re-set up the app.
All Methods Fail
- Click “Try another way” on the login screen to see all available options.
- Use a recovery code if you saved them.
- If you have no other options, Facebook’s account recovery process can help. Go to facebook.com/login/identify and follow the prompts. You may need to verify your identity by providing a photo ID or confirming your identity with friends.
Frequently Asked Questions
Why didn’t I receive my Facebook security code?
Common reasons include: your phone number is not linked correctly, your carrier blocks short codes, your email provider filters Facebook messages, or there’s a temporary delay. Try resending, check spam, or use another method.
Can I get a Facebook security code without a phone number?
Yes, if you have an email address linked to your account, you can choose email as your delivery method. You can also use an authenticator app or a recovery code.
How long is a Facebook security code valid?
Facebook security codes are typically valid for a few minutes. If you don’t use it in time, you’ll need to request a new one.
What are Facebook recovery codes?
Recovery codes are 10 one-time-use codes you can generate when you set up two-factor authentication. They let you log in without a phone or authenticator app. You should store them securely.
I lost my phone. How do I get a Facebook security code?
Use a recovery code if you saved one. Otherwise, try email delivery if you have access to your email. If you have none of these, use Facebook’s account recovery process at facebook.com/login/identify.
Can I turn off two-factor authentication to avoid entering codes?
Yes, but only if you’re logged in. Go to Settings > Security and login > Two-factor authentication, and turn it off. However, keeping 2FA on is strongly recommended to protect your account.
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
- Fix Apps Not Downloading From Play Store
- Secure a Samsung Galaxy After a Zero-Day Disclosure
- What to Check Before Installing Linux Alongside Windows
- Fix OEM Activation Error 0xc004c060 in Windows 10
- Why Does My App Run One Query for the List and One per Item?
- Fix Google Chrome Has Stopped Working