I cannot get my Facebook two factor code
This one is quietly frustrating, because the thing keeping you out is the thing you turned on to keep other people out, and it is working exactly as designed. Nearly always the cause is an old mobile number, or an authentication app that was on a phone you have since replaced. There is a way back, and there is also a five minute job to do afterwards so it never happens again.
Last checked: 15 August 2026. Every official Facebook, Instagram and Australian government link on this page was opened and confirmed working on that date. If you find one that no longer works, please tell us and we will fix it, because a dead link on a page like this is worse than no page at all.
First, look for your recovery codes
When you switched two factor authentication on, Facebook offered you a list of recovery codes and suggested you keep them. If you printed them, wrote them in a notebook, or saved them in a password manager, this is the moment they were made for. Any one of them gets you in without the phone.
Worth checking: the back of a diary, a note in a filing drawer, an email you sent yourself, or a saved note on another device. People store them and forget they did.
If you do not have the codes
The official page for this situation:
Facebook: recover your account if you cannot log in
https://www.facebook.com/help/105487009541643
The official route when a login code cannot reach you. It leads to the alternatives Facebook can offer for your account.
The device trick matters especially here. Facebook is far more willing to offer alternatives on a device it has seen on the account before, because that is itself a form of evidence. Trying from a strange computer is the most likely way to end up stuck.
If the phone number is simply out of date
This is the usual story. The number on the account belongs to a phone or a plan you no longer have, so the text message goes nowhere. If your old number was transferred to your current phone, try again, because it may work. If the number is genuinely gone, you are into the identity confirmation route below.
The official page for this situation:
Facebook: confirm your identity
https://www.facebook.com/help/582999911881572
Used when there is no working way to send you a code. Slower, commonly several days.
Facebook explains how the whole system works here: how two factor authentication works on Facebook.
Once you are back in, spend five minutes on this
- Update the mobile number on the account to the phone you actually use now.
- Generate a fresh set of recovery codes and put them somewhere that is not your phone. A piece of paper in a drawer is fine and survives a lost handset.
- If you use an authentication app, add it to a second device as well, or make sure the app itself backs up, so a broken phone is not a locked account.
- Do not turn two factor authentication off. It is the single most effective thing protecting the account, and being locked out is a fixable inconvenience whereas being taken over is not.
One warning specific to this situation
Because you are waiting for a code, you are unusually likely to be caught by a code scam. Nobody legitimate will ever ask you to read out a code, forward one, or send one to a friend who says they are locked out. That code is the last thing standing between an attacker and your account, and asking for it is the whole trick.
- Anyone offering a phone number. There is no Meta support line. A number is the clearest single sign you are being scammed.
- Paid recovery agents. Services that promise to get your account back for a fee. They have no access Meta does not give you for free, and the usual outcome is that you pay and nothing happens.
- Anyone who messages you offering to help after you post that you have been hacked, especially on Instagram. Watching for those posts is exactly how they find people.
- Anyone asking for an upfront fee, a gift card, a voucher or a cryptocurrency payment. No legitimate service is paid this way.
- Anyone asking for your password or your two factor code. No real Meta process ever asks a person for these. Sharing the code is how the second theft happens.
- Anyone asking to remote control your computer to fix it for you, unless it is somebody you already know and trust.
- A friend asking you to receive a code for them. That friend has already been taken over, and the code is for your account.
Related pages on this site
- Start at the router , if this is not quite your situation.
- There is no Meta phone number , and what the numbers really are.
- Paid recovery services , why none of them are real.
- The full Facebook page .
- Password managers explained simply , a good place to keep recovery codes.
Frequently asked questions
What if I lost the phone with my Facebook authentication app?
Use one of the recovery codes you were given when you set two factor authentication up, which is exactly the situation they exist for. If you cannot find them, go to Facebook's cannot log in page from a device you have used for Facebook before, as it is far more likely to offer you an alternative on a machine it already recognises.
My old phone number is on the account and I cannot receive the text.
That is the most common cause of this by a distance. If the number moved with you to a new phone, try once more, because it may simply work. If the number is genuinely gone, you need Facebook's identity confirmation route, which is slower at several days but is the genuine way back when there is nowhere left to send a code.
Should I just turn two factor authentication off?
No, and this is worth being firm about. It is the single most effective protection on the account, and being locked out is an inconvenience you can fix whereas a stolen account often is not. Once you are back in, update the phone number, save a fresh set of recovery codes on paper, and leave the protection switched on. Turning it off to avoid this happening again simply removes the thing that was protecting you.
A friend has asked me to receive a code for them. Is that alright?
No, never, and this is one of the most reliable warning signs there is. That friend's account has almost certainly already been taken, and the message is coming from somebody else. The code being sent is for your account, not theirs. Ring the friend on a number you already have and tell them what has happened. Never forward a code to anybody, for any reason, however plausible the explanation sounds.