how to make facebook chat?

我的未来我决定 提交于 2019-12-04 14:35:40

问题


I want to create an android Facebook chat application , i found this open source project .. http://coderrr.wordpress.com/2008/05/06/facebook-chat-api/

but i want to ask whether this "Facebook chat api" is still working ?

If no, what is the way to creat a facebook chat ?


回答1:


Dig a bit deeper into http://developers.facebook.com/docs/chat/. There are a number of XMPP and related APIs for Java, C#, iOS, and Android alike to be found on the web - or you can base such work on the libpurple API from Pidgin (http://www.pidgin.im/). It would behoove you to become familiar with XMPP concepts.




回答2:


There is great simple code https://github.com/KanybekMomukeyev/FacebookChat , i used it in my app.




回答3:


Facebook provides their own chat API. See the docs at Integrating with Facebook Chat. They provide sample code in PHP.

You can also use Jabber to authenticate with Facebook. You'll need an application key to ensure this all works.




回答4:


U can integrate fb chat using facebook authentication or by digest md5...the code given there does not use any API keys nor it uses digest md5 authentication... So not sure whether it ll wrk...try it out... the overall architecture would be

app<->xmpp<->BOSH<->Facebook chat Since fb support xmpp protocol u can set an xmpp chat client using lib lik smack,strophe,asmack etc...

refer to http://professionalxmpp.com/..great to start with..gives complete idea on hw to go abt...



来源:https://stackoverflow.com/questions/5035636/how-to-make-facebook-chat

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!