使用Android API拍实聊天着工作 [英] facebook chat cant work in smack api with android

查看:166
本文介绍了使用Android API拍实聊天着工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发的聊天客户端我app.now我使用嫌API测试它的gtalk,脸谱,yahoo.iam为that.i我现在成功的Facebook的情况下,测试了gtalk.But我得到错误

i am developing chat client for my app.now i am testing it on gtalk,facebook,yahoo.iam using smack api for that.i am now successfully tested it on gtalk.But in case of facebook i got error

 01-13 10:53:05.938: INFO/XMPPClient(389): [SettingsDialog] Connected to chat.facebook.com
01-13 10:53:07.178: ERROR/XMPPClient(389): [SettingsDialog] Failed to log in as chikka0305@chat.facebook.com
01-13 10:53:07.178: ERROR/XMPPClient(389): SASL authentication failed using mechanism DIGEST-MD5: 


你可以看到ICAN连接,但不能登录。我已经看到同样的问题在这里:HTTP://stackoverflow.com/questions/3750547/facing-problem-using-smack-on-android


as you can see ican connect but cant login .i already saw same question here:http://stackoverflow.com/questions/3750547/facing-problem-using-smack-on-android.

但不工作的为我解答。

请帮我摆脱这种概率的。

pls help me to get out of this prob.

推荐答案

我得到了我problem.it SI与asmack发放工作完美15.jar.and你必须设置: connConfig.setSASLAuthenticationEnabled(真);

i got my problem.it si perfectly work with asmack-issue 15.jar.and you have to set: connConfig.setSASLAuthenticationEnabled(true);

和您必须设置用户名写只是没@ chat.facebook.com

and you have to set write username only without @chat.facebook.com

这篇关于使用Android API拍实聊天着工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆