简体   繁体   English

如何在我的 SPA 的特定页面上隐藏 Facebook 客户聊天插件?

[英]How to hide facebook customer chat plugin on specific pages of my SPA?

We have SPA (single page application, generated nuxtjs project) with facebook customer chat plugin on it.我们有带有 facebook 客户聊天插件的 SPA(单页应用程序,生成的 nuxtjs 项目)。

This plugin is initialized during page refresh and remains on the site after router loads view.此插件在页面刷新期间初始化,并在路由器加载视图后保留在站点上。

We want to show this plugin only on specific pages such as landing page, support page, payment page and hide on the rest pages.我们只想在特定页面上显示此插件,例如登录页面、支持页面、付款页面并隐藏在其余页面上。

During initial load the plugin creates iframe with all the magic inside it and this iframe remains during SPA navigation untouched.在初始加载期间,插件会创建 iframe,其中包含所有魔法,并且该 iframe 在 SPA 导航期间保持不变。

The question is - how to properly hide facebook customer chat plugin on specific pages?问题是 - 如何在特定页面上正确隐藏 Facebook 客户聊天插件? Destroy iframe?销毁 iframe? Some undocumented settings?一些未记录的设置? Another magic?另一个魔法?

Thanks谢谢

小部件初始化后,您可以通过window.FB.CustomerChat.show()window.FB.CustomerChat.hide()方法轻松控制可见性

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 检查用户是否登录到Facebook-客户聊天插件 - Check if user is logged in to Facebook - Customer Chat Plugin 使用Typescript进行响应的Facebook客户聊天插件 - Facebook Customer Chat Plugin For React with Typescript Facebook客户聊天插件是否支持同一页面中的Web视图? - Does the Facebook customer chat plugin support webviews within the same page? 在 Facebook 客户聊天插件中无法以 GUEST 身份成功发送消息 - Cannot send message successfully as a GUEST in Facebook customer chat plugin Rails 6 与 Turbolinks 和 Facebook 客户聊天 - Rails 6 with Turbolinks and Facebook Customer Chat 在手机上隐藏Facebook Messenger客户聊天 - Hiding Facebook Messenger customer chat on mobile 如果用户已经喜欢FB页面,如何隐藏Facebook页面插件 - How to Hide Facebook Page Plugin if the User Already Liked the FB Page Facebook登录插件如何隐藏文本:“ [用户名]使用[应用程序名]”? - Facebook login plugin how to hide text: “[username] uses [appname]”? Facebook 聊天插件“杀死”Pagespeed 至 33 - Facebook chat plugin “kills” Pagespeed to 33 在Facebook上查询特定类型的页面 - Query for pages of a specific type on Facebook
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM