Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How are the facebook chat windows implemented?

On Facebook you can browse the site without affecting the floating chat windows. Seems like if the main page was inside an iFrame and the footer and chat windows where floating outside.

alt text
(source: k-director.com)

Is the main content inside an iframe or are the footer and chat windows the ones inside an iframe?

The later doesn't seem possible because int this case when you click in a link in the main page everything would have to reload, including the footer iframe.

If you refresh the page the chat windows are reloaded, but if you browse the site by clicking links they are not.

Thank you.

like image 721
Santiago Corredoira Avatar asked Feb 16 '09 19:02

Santiago Corredoira


People also ask

How do I implement Facebook chatbot?

After you log into your Facebook account, click the + sign to start a new chatbot. Start a new chatbot on Chatfuel. Next, choose a template to edit or create a blank chatbot from scratch. Enter a name for the chatbot in the text box and click the red Create a Chatbot button to create it.

How does Facebook organize chat list?

Your chat sidebar works in a similar way. The algorithm chooses interactions, activity, communication, photos, etc. This determines which friends will show up on top and have priority. The friends that you communicate with most often will usually be first on this list.

How does Facebook chat work?

When you send a message to someone you're friends with on Facebook: Your message gets delivered to their Facebook Chat list. If the person uses Messenger, your message will also be delivered to their Messenger app. Messages you send to people you're not Facebook friends with may arrive in their message requests.

Does Facebook Messenger still use MQTT?

Facebook uses MQTT for Messenger Chats. Each "Chat" has a generated Topic, and all members in the Chat subscribe and Publish to that generated Topic. The MQTT Messenger Broker infrastructure is made up of "many" different Brokers, and a "Topic Director" steers the Chat MQTT packets to the Broker handling that chat.


1 Answers

If you install FireBug and enable the net monitor for Facebook, you'll see that when you click most links inside the application, you're not doing a full page refresh, but rather an AJAX call which updates the page with the new content.

It looks like a new page, but in reality you're on the same page with just about everything but the chat-bar replaced.

like image 90
Fudgie Avatar answered Oct 14 '22 16:10

Fudgie