That’s how i got it working. Enter your username and password in the basic window. In the advanced window set the connect port to 443 and i entered chat.facebook.com in the file transfer proxy field. In the security drop down list choose “use encryption when available”.
Get Pidgin here and the plugin here.
PS: if you want to use the yahoo messenger feature of pidgin behind a firewall just change the ports to 80 :)
