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 ...