Reputation: 515
We have SPA (single page application, generated nuxtjs project) with facebook customer chat plugin on it.
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.
The question is - how to properly hide facebook customer chat plugin on specific pages? Destroy iframe? Some undocumented settings? Another magic?
Thanks
Upvotes: 0
Views: 2151
Reputation: 53
Аfter the widget has been initialized, you can easily control the visibility through the methods window.FB.CustomerChat.show()
and window.FB.CustomerChat.hide()
Upvotes: 1