Service-unavailable(503) facebook using smack

I am getting

Exception in thread “main” service-unavailable(503)

at org.jivesoftware.smack.NonSASLAuthentication.authenticate(NonSASLAuthentication .java:78)

at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:404)

at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:349)

at TestFaceBookLogin.main(TestFaceBookLogin.java:22)

SASLAuthentication.registerSASLMechanism(“DIGEST-MD5”,

MySASLDigestMD5Mechanism. class);

ConnectionConfiguration config =

new ConnectionConfiguration(“chat.facebook.com”,5222);

config.setSASLAuthenticationEnabled(false);

XMPPConnection connection = new XMPPConnection(config);

connection.connect();

System.out.println(connection.getServiceName());

       connection.login("xxxxxx@yahoo.com", "xxx"); // line 22 of code

are you trying to connect with the email adress you’re using for facebook, if thats the case, then theres your error.

FacebookChat uses your Profilename as Username for Login

where i can find my profile name.

can you please me on this also now i am getting

Exception in thread “main” service-unavailable(503)

at org.jivesoftware.smack.NonSASLAuthentication.authenticate(NonSASLAuthentication .java:78)

at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:404)

at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:349)

at TestFaceBookLogin.main(TestFaceBookLogin.java:22)

enable

config.setSASLAuthenticationEnabled(true);

its false for gtalk nd true for facebook

your username can be found under my account under settings