Facebook chat password for external application

Facebook chat with two step verification requires a password and then a login token. This is not supported by most application, as they will only use the password.

The solution is to configure the chat application to use an app password generated by facebook