Friday 12 April 2013

ADF : Facebook chat implementation

I had a task in my organisation to implement facebook chat in ADF. After a lot of search on internet and found that chat for facebook can only be inplemented through smacks api. It is available at http://www.igniterealtime.org/downloads/source.jsp .

Download the sample zip application here : Facebookchat.rar


There are three java classes used for the same:



  1. "CustomSASLDigestMD5Mechanism.java" to perform the authentication.
  2. "FBMessageListener.java" to listen to the messages that comes to you from facebook.
  3. "FBConsoleChatApp.java" is the java class that contatins main method i.e. this is the class used for running the program.
GoodLuck.

No comments:

Post a Comment