7 ways to troubleshoot when Facebook isn’t sending a security code

Like many websites and apps, if you try to log in with a different browser or device, Facebook may send you an authorization code to verify your identity. Additional security is essential to protect your account, but it doesn’t always work exactly correctly.

For example, sometimes, you’re waiting for a code that doesn’t come at all, which obviously prevents you from logging in and using Facebook. There are many reasons why your code might not have arrived; Here are seven of the most common ways to fix this frustrating and time-consuming problem.

1.  Check your spam folder

Without a doubt, the single most common reason people don’t get – or think they don’t get – their security code is that it’s already in spam or spam folders. It’s easy to miss, especially at critical moments when you’re trying to log into a new device, so go to your email program’s spam folder and see if it’s there waiting for you. If you’re expecting the code to arrive via SMS, keep in mind that many phones filter incoming SMS by known and unknown senders – your code may be in the Unknown Senders folder.


2. Make sure two-factor authentication is actually enabled

If you enable two-factor authentication, you’ll receive a code confirming that you’re authorized to log in to Facebook. If you can log in to social media sites without receiving or entering a code, chances are you’ve disabled two-factor authentication. It’s easy to check – two-factor authentication can also be re-enabled if needed.

In a web browser, open the Facebook website and click the account icon at the top of the page. In the menu, select Settings & Privacy, then Settings. In the left pane, click Security & Login, and then in the Two-Factor Authentication section of the main page, click Edit next to Use Two-Factor Authentication. Follow the instructions to turn on the feature.


If you’re using the Facebook app on your phone, tap the three-line menu icon at the bottom right of the page. Click the Settings gear at the top right of the next page, then click Password & Security under the Account section. In the Two-factor authentication section, click Use two-factor authentication and enable the feature.

3. Apply for codes in different ways

Most people get a Facebook security code by default, but that’s not your only option. If you’ve applied for a code but it doesn’t seem to arrive via email, you can change it so that it is delivered via SMS to your SMS app or vice versa.

To do this, try logging into Facebook. When it asks for a code, select Resend. If you still don’t get the code, click Need another way to verify and follow the instructions to use another delivery method, such as the email address registered for your account.

Using an authenticator app like Google Authenticator is often a more convenient and secure two-factor solution. Once you’ve logged into your account, consider an authentication app as your primary two-factor authentication solution. To do this, go to the two-factor authentication setup (see previous troubleshooting steps) and follow the instructions to add an authentication app.

4. Make sure you have a reliable internet connection

Don’t lose sight of the obvious: Do you have a normal, reliable network connection? For example, if you request a code while connecting to a public Wi-Fi network, a bad connection could mean that the request was never actually sent. Turn off your phone’s Wi-Fi and use only your phone data. If you’re at home, consider restarting your Wi-Fi router.

5. Restart your device

There are other simple things you can do to get Facebook up and running. For example, your phone or computer may have a temporary failure that can be washed out by restarting. Before you restart the entire device, give the app a chance: turn off Facebook completely (here’s how to close an app on Android or close an app on iOS) and launch the app again. On a computer, simply close and restart your browser. If that doesn’t fix the problem, turn off your iPhone and restart it. To turn off most Android phones, press and hold the power button and select Turn off when options appear on the screen. Then try Facebook.

6. Make sure Facebook is online

There are few noticeable service interruptions at Facebook, but they can happen – if you can’t get a security code, it’s probably because Facebook is offline. You can check Facebook’s status page on Downdetector. You can also search your web browser for “is Facebook closed”. If it is offline, then you need to wait for the service to resume before attempting to sign in.


7. Clear Facebook’s cache

If you’re trying to sign in on your phone, there’s probably a problem with the app itself. Occasionally, mobile apps on iPhone and Android experience cache corruption. Thankfully, the solution is relatively simple. If you’re using Facebook on your iPhone, uninstall the app and reinstall it from the App Store.

If you have an Android device, you can clear the cache without uninstalling the app. Launch the Settings app and tap Apps. If necessary, tap See all apps, then tap Facebook. Tap Storage and Cache, then Clear Cache, followed by Clear Storage.