If you are having trouble using your Facebook two-factor authentication not working or security key, ensure that you have set up either a third-party authentication app or text message codes. If you have already set up one of the security methods, clear all your cache and cookies and the temporary data.