To enable two-factor authentication on your Facebook account, go to Settings > Security and Login > Use two-factor authentication and follow the instructions.