A Facebook Chat Bot now possible with XMPP? - facebook

With Facebook now supporting XMPP, would it be possible to implement a simple chat bot, perhaps through an app (i.e. conversations not coming from an individual).

Probably late, but yes writing xmpp bot for facebook is now possible using any xmpp library. Jaxl library written in PHP is one option for you, it do also support X-FACEBOOK-PLATFORM authentication http://github.com/abhinavsingh/JAXL

Yes! You will need a Facebook account to authenticate as. I am not sure about s2s offhand but a c2s bot is possible.

Related

Can i use Hangouts Chat API for application not use for bots?

Can I use Hangouts Chat API for a application like someone sign in this application and get dm or rooms for my application? I means i don't went to create a bot ,but i went use this API to get info from Hangouts Chat and send messages.
You appear to be asking if you can use the API to write your own client. If so, no, this is not possible. According to the documentation here https://www.googleapis.com/auth/chat.bot is the only scope available to the Hangouts Chat API and:
This scope only works for service accounts—you can't use this scope to authenticate using end-user credentials.
If you are okay with thrid party API, You can try Hangup Bot

What is the alternative to using Facebook chat API now that Facebook will soon disable the XMPP API?

Now that Facebook will be completely disabling the XMPP service soon, how do I get around this? Will there be any possible way to send/receive messages in real-time? Do I need to run my own XMPP server?
I assume there is still a way to do this or else desktop apps like Trillian would have to stop offering Facebook connection.
Currently there is no other API that allows you to retrieve the user's chat information.

how to make facebook chat?

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 ?
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.
There is great simple code https://github.com/KanybekMomukeyev/FacebookChat , i used it in my app.
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.
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...

Making a chat room with Facebook authentication

I'm having a hard time figuring out how to create an embeddable online chat room that requires a Facebook authentication. I want the chat room to be public, allow users to log in with their Facebook accounts, and chat with each other using their Facebook identity(name). I know how to authenticate users into a website using FBML and FQL, but I don't know how to incorporate that concept in creating a chat room. Facebook Chat uses XMPP, so I looked up XMPP multi chat documentation, but I can't understand really well. I can do PHP and JavaScript(jQuery/JSON/etc). Can someone help me how to go about making such a chat room?
Building such a thing will not be possible until unless you hack your way around this. Not possible mainly because facebook still lacks federation i.e. as soon as fb chat servers sees -123456#chat.facebook.com trying to send a message of type "groupchat" to a MUC room jdev#conference.jabber.org, it will block this message stanza and not pass it on to the MUC room.
Hacking such a thing will involve writing your custom Jabber/XMPP components running at your own chat servers, which will then take care of outgoing messages of type "groupchat" from your system and re-route them appropriately to the MUC rooms. Jaxl IM is a project which does exactly the same thing and it uses Jaxl (Jabber XMPP Library in PHP) library for all such purposes.

How can I implement Facebook Chat on my site?

I'm developing a site with something similar to the Digg bar at the top. One of the features requested is a live chat using Facebook. Is it even possible to implement Facebook Chat on my site by using Facebook Connect or other methods? And if so, how?
[update] I've seen that it works with Pidgin and Adium, but what I'm looking for is a site based implementation (think AJAX & HTML living at the top of the page).
It appears that the Facebook team has at least begun, if not finished, implementing an xmpp/jabber interface for Facebook Chat. This would allow you to use any XMPP enabled client to connect to Facebook. That said, there's at least one javascript jabber client library available that I can find. Although, you may have to implement a proxy on your web server to allow the JS client to talk to the Facebook server.
Also, I'm not sure how they're doing it, but Meebo has managed to enable Facebook chat integration on their site with Facebook Connect. I haven't found anything mentioning it, but this functionality may be easily available through the Facebook Connect API (documentation).
To answer your question: Yes, it's possible.