You can get latest version of pidgin here. After installation configure the plugin as shown below.
Select Facebook chat, enter your username (or email-id) and resource as pidgin.
Note: Also check that the port no. is 5222 under advanced settings.
In the same way you can configure other chat services.