Facebook Chat app using XMPP, Spark or SparkWeb java

I am trying to make a facebook chat application for my site using facebook XMPP, Spark or SparkWeb and java. im not sure how to get started for it. I am making a facebook application in php and have no idea how to authenticate users in my application. please help me on this topic. give a link or link so I can make this application.

Thanks in Advance.

+3


source to share


2 answers


Ignite Realtime (Spark developer) provides a library called SmackAPI. You can use it to implement your own client and integrate it into your site.

SmackAPI



To use Facebook XMPP Chat, you need to know some information:

Host:chat.facebook.com
Port:5222
Username: myfacebookuser@chat.facebook.com
Password: myfacebookpassword

      

+2


source


You need to extend Smack SASLMechanism

to implement Facebook's authentication mechanism. BTW, Spark (you mentioned) is an XMPP client that uses the Smack library.



0


source







All Articles