How do I install Facebook chat on Pidgin?

Hey everyone. I’m having a lot of trouble installing Facebook chat on Pidgin. I am using Windows 11. When I go under Modify Account in Pidgin, I put in my Facebook username and password, but then it says expect an SMS with a two-factor authentication passcode. I put them modify my account and use the two-factor authentication number in the password field since I there is nowhere else that I can tell to put it. Once I do that, I get another message saying I have an invalid username or password. Therefore, I must be putting the two-factor authentication in the incorrect spot, but I don’t know where to put it. Can you all please help me?

EDIT TO ADD: I am using a VPN.

Current version of Facebook plug-in doesn’t support two-factor authentication.