powered by Jive Software

BIG PROBLEM_FACEBOOK chat Client____helP!

hi,

i’m a newbie here & feeling lucky to join you.i’m a student of Computer Science & Engineering at renowned Bangladesh University of Engr. & Tech.(BUET),Dhaka…I have to submit a facebook chat client made using java within next week,i tried to build it using SMACK …but i could not login to facebook though it was quite easy in gTalk…here i’m giving the login part… …whats wrong with it?how can i make it working?the login code look like:

public void login(String userName, String password) throws XMPPException
{
ConnectionConfiguration config = new ConnectionConfiguration(“chat.facebook.com”,5222, “facebook.com”);
config.setSASLAuthenticationEnabled(false);
connection = new XMPPConnection(config);

        connection.connect();
        connection.login(userName, password);
        Presence presence = new Presence(Presence.Type.available);
        presence.setMode(Presence.Mode.available);
        connection.sendPacket(presence);

}

does the setSASLAuthenticationEnabled needs to be set true? i’m confused…& need your help…pls help me as early as possible…i’m running out of time!

thanks in advance-

dibosh.