首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >Facebook聊天窗口是如何实现的?

Facebook聊天窗口是如何实现的?
EN

Stack Overflow用户
提问于 2018-04-09 23:41:23
回答 3查看 0关注 0票数 0

Facebook上,你可以浏览网站而不影响浮动聊天窗口。看起来好像主页是在一个iFrame里面,并且页脚和聊天窗口在外面漂浮。

参考:http://www.k-director.com/blog/upload/FacebookChat03.gif

这是iframe中的主要内容,还是脚注和聊天窗口是iframe中的内容?

后者似乎不可能,因为在这种情况下,当你点击主页面中的链接时,一切都需要重新加载,包括页脚iframe。

如果刷新页面,则会重新加载聊天窗口,但如果通过单击链接浏览网站,则不会。

EN

回答 3

Stack Overflow用户

发布于 2018-04-10 08:00:15

如果你安装FireBug并为Facebook启用网络监视器,你将看到当你单击应用程序内部的大多数链接时,你并未执行整页刷新,而是使用新内容更新页面的AJAX调用。

它看起来像一个新的页面,但实际上,你几乎在一切,但聊天栏取代了同一页。

票数 0
EN

Stack Overflow用户

发布于 2018-04-10 09:09:44

可能只是一个绝对定位的div,包含内容的滚动div。

票数 0
EN

Stack Overflow用户

发布于 2019-04-04 11:43:09

I think one of the solutions is to create a scan code (parametric code) for Facebook messenger.

Parametric codes are QR codes for Facebook, once scanned, a person will be brought to your bot for a conversation. There is a referential value behind the URL.

By printing and posting these scannable codes on the name cards or some promotional pamphlets, you can push offline users to your chatbot with ease.

To create one is quite straight forward, I think other users have contributed to it, or here is the Messenger Code guide to give you more insights on how messenger code is beneficial to various fields of business.

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/-100008031

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档