powered by Jive Software

I want to create facebook like chat application in my website

i have used spark with openfire but that works like customer and agent style but my requirement is chat between friends whoever registered in my website. How do i get this functionality and which plugin i should use to get this done?