SASL Authentication failed while integrating facebook chat using Smack

前端 未结 4 1402
没有蜡笔的小新
没有蜡笔的小新 2021-01-13 23:06

I am trying to integrate facebook chat using smack API.But i get an error telling authentication failed using digest md5...

Here s the code for authentication:

4条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-13 23:28

    For me the solution was to not include the host part in the username when calling login() without DNS SRV and not agains the Google Talk services. This is also described in the ignite forums.

    E.g.

    connection.login("user@jabber.org", "password", "resource");
    

    becomes

    connection.login("user", "password", "resource");
    

提交回复
热议问题