Facebook Chat with centralized server - facebook

Is it possible to implement a Facebook chat client through centralized server? My centralized server get and coordinate the chat for users.

You need to install a xmpp server on your server, try Openfire.
The same community make a xmpp web client, SparkWeb
If you want to make it look/act like the fb chat, you need to learn how to use ajax/javascript/php.

Related

Block other xmpp client from accessing my ejabberd server

I developed chat application for mobile platform which uses eJabberd xmpp chat server configured in my public Ubuntu machine.
To make the server connection i used https://mydomainname.com:5280/http-bind so how to protect this to access only by my client application not others.
Now my serverĀ is accessible by any client like pidgin, adium etc How to block this.
You can modify ejabberd to have a custom authentication that integrate a variation from the specification and implement that in your client. That way, unmodified standard client will not be able to read it.
However, as your client is Javascript and code is visible, it will still be possible to patch existing client to implement your variation, but there is not way around this. The approach of "shared secret" means that if the secret is found, other clients could find a way to connect. The secret is even less difficult to find when your code is public (even if obfuscated).

Is it possible to retrieve message history from HipChat via XMPP?

I am building a chat client that talks to HipChat's XMPP API. I would like to retrieve 1:1 message history between the user and other's on his contact list. There is a XMPP protocol for doing this, XEP-0136, but it appears that HipChat does not support it. It is not listed on their HipChat XMPP Documentation, and when I try to make that call the server returns an error saying it's not supported.
Is there any way to do this via HipChat's XMPP API? I know their OAuth API supports it, but I don't want to use that.

how to fetch new messages without overloading server in php?

which technology is being used in Google or Facebook chat applications to fetch new messages from server without overloading server with continuous servers queries using Ajax calls ?
Facebook and Gmail might be using Real time messaging protocol for instant messaging.
Please refer this page to read more about RTMP
wikipedia.org/wiki/Real_Time_Messaging_Protocol

Create the same user on xmpp server when a user is created in a rails 3.2 app

I am building an application in which front end is iPhone and I am using ROR as my backend with mongoDB as my database. It is a kind of chatting application for which I am using jabber protocol and XMPP server. Now I want that when a user is created in my rails app, the same user should be created on the XMPP server. Any help would be much appreciated.
The ideal situation is to have only a single source for users and configure your XMPP server to use that same service.
For example it is common to have an XMPP server authenticate against LDAP, then all user management is delegated to the LDAP server. The XMPP server doesn't handle user management at all, but defers any user related queries to LDAP.
This would ultimately be more reliable than trying to keep two separate systems in synch. If the user management in your case is custom (which it appears to be), it might mean you will also have to add a custom module/plugin to your XMPP server (you haven't mentioned which one you are using) to use that service.

Lotus Sametime web service API

Is there a SOAP or REST API for Sametime to enable an application to push presence information on behalf of all Sametime users, and to subscribe or poll, the users' presence information?
Where can I find information about it?
With Sametime 8.5 and later IBM offers the Sametime Proxy Server. The Proxy server has a REST API, but you will not be able to do anything with it, unless your application authenticates as a user.
You could do what you want, if you built a little SOAP interface using the Sametime Community Server toolkit however, this will give you low level access to the server, and will not require you to login as a user, and allows you to light login as a user to change their status.
Carl
www.epilio.com
You might want to ask that on the Atom protocol ML. IIRC James Snell worked on "Atom for Lotus" a while ago.