hi,
im using smack on android to connect to google talk and its working fine, but when logging in to facebook chat i get a ‘503 service unavailable’ error (although it connects to chat.facebook.com fine). im currently using:
Log.i("XMPPClient", "[SettingsDialog] Connected trying to connect");
ConnectionConfiguration connConfig = new ConnectionConfiguration("chat.facebook.com", 5222, "chat.facebook.com");
XMPPConnection connection = new XMPPConnection(connConfig);
SASLAuthentication.registerSASLMechanism("DIGEST-MD5", FacebookChat.class);
try {
connection.connect();
Log.i("XMPPClient", "[SettingsDialog] Connected to " + connection.getHost());
} catch (XMPPException ex) {
Log.e("XMPPClient", "[SettingsDialog] Failed to connect to " + connection.getHost());
Log.e("XMPPClient", ex.toString());
setConnection(null);
}
try {
connection.login(username, password);
Log.i("XMPPClient", "Logged in as " + connection.getUser());
Presence presence = new Presence(Presence.Type.available);
connection.sendPacket(presence);
setConnection(connection);
} catch (XMPPException ex) {
Log.e("XMPPClient", "[SettingsDialog] Failed to log in as " + username);
Log.e("XMPPClient", ex.toString());
setConnection(null);
}
allthough ive tried aSmack (http://github.com/rtreffer/asmack), all the ideas from http://www.igniterealtime.org/community/thread/41080?tstart=30 and http://www.igniterealtime.org/community/thread/35976 and lots of my own ideas but still no luck. Could this be a problem with the server maybe? Or maybe something simple as im a newb when it comes to java.
Thanks for any help,
ng93