通过这个例子,我试图让Facebook好友连接数量,但是我收到了错误
XMPPConnection connection = new XMPPTCPConnection("chat.facebook.com");
connection.connect();
connection.login("asdd@asd.com", "pass");
Roster roster = connection.getRoster();
Collection<RosterEntry> entries = roster.getEntries();
System.out.println(entries.size() + " buddy(ies):");
输出:
23,2014 2:23:04 PM org.jivesoftware.smack.filter.IQReplyFilter接受 警告:拒绝对IQ数据包的潜在欺骗性回复。过滤设置:packetId = JR6jj-0,to = null,local = null,server = chat.facebook.com。收到来自from = asdd @asd.com @ chat.facebook.com
的数据包我使用的是Smack4.0.3版本