SASL Authentication failed while integrating facebook chat using Smack

前端 未结 4 1489
没有蜡笔的小新
没有蜡笔的小新 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:27

    I have succesfully connected using DIGEST-MD5 to facebook, the code you have posted looks good. But still we need to check the contents of your SASLDigestMD5Mechanism class

    I have used the class provided in here with success

    http://community.igniterealtime.org/message/200878#200878

    Also you have to notice that in the DIGEST-MD5 mechanism you have to login with your facebook username and not with the email address. By default the facebook accounts don't have a username, you have to create one fisrt, you can check that in here:

    http://www.facebook.com/username/

提交回复
热议问题