How to open the Messenger Customer Chat Facebook Plugin from another button?

0

I'm implementing the Facebook Chat plugin on a website, where it renders an iframe on the page. I would like to know if it is possible to use a button on my page to do the same action as the button that opens the chat in the iframe ...

ItriedtomovetheiframeintothelinkbutIwasnotsuccessfulbecausethebuttonlosesthefunctionality,itfollowsthecodethatIimplemented:

//pegaoiframevargetBtChat=$(".fb_dialog.fb_dialog_advanced");

//remove da pagina
$(".fb_dialog.fb_dialog_advanced").remove();

//coloca dentro do link
$("a#btFacebook").append(getBtChat);

All help is welcome ...

    
asked by anonymous 19.02.2018 / 16:54

0 answers