Point0 Posted December 28, 2015 Share Posted December 28, 2015 Boa tarde, Estou com problemas ao criar um widget facebook. Tentei o oficial, e acontece um bug estranho. Recriei utilizando as dicas deste site https://developers.facebook.com/docs/plugins/page-plugin#resizing E acontece a mesma coisa. Na página principal, tudo OK, sempre que navega para outra página desaparece. E só acontece com este widget. Verificando o código HTML da página principal encontro o seguinte(este é utilizando o oficial facebook like box): <div class="fb-like-box fb_iframe_widget" data-href="https://www.facebook.com/xxxxxxx" data-colorscheme="light" data-show-faces="true" data-header="false" data-stream="false" data-show-border="false" fb-xfbml-state="rendered" fb-iframe-plugin-query="app_id=334341610034299&color_scheme=light&container_width=377&header=false&href=https%3A%2F%2Fwww.facebook.com%2Fxxxxxx&locale=en_US&sdk=joey&show_border=false&show_faces=true&stream=false"><span style="vertical-align: bottom; width: 300px; height: 214px;"><iframe name="f298c8598c" width="1000px" height="1000px" frameborder="0" allowtransparency="true" allowfullscreen="true" scrolling="no" title="fb:like_box Facebook Social Plugin" src="xxxxxxxx;color_scheme=light&container_width=377&header=false&href=https%3A%2F%2Fwww.facebook.com%2Fxxxxxxxx&locale=en_US&sdk=joey&show_border=false&show_faces=true&stream=false" style="border: none; visibility: visible; width: 300px; height: 214px;" class=""></iframe></span></div> Qualquer outra página: <div class="fb-like-box" data-href="https://www.facebook.com/xxxxxxx" data-colorscheme="light" data-show-faces="true" data-header="false" data-stream="false" data-show-border="false"> </div> Já andei à pesquisa de dados para me ajudar neste problema, e não consigo encontrar... Alguém me dá uma dica pf? Obrigado Link to comment Share on other sites More sharing options...
Daniel - PrestaBR Posted December 28, 2015 Share Posted December 28, 2015 No arquivo principal do módulo: /modules/blockfacebook/blockfacebook.php, tente comentar a condicional "if" na função hookHeader(): public function hookHeader() { $this->page_name = Dispatcher::getInstance()->getController(); //if ($this->page_name == 'index') $this->_assignMedia(); } Link to comment Share on other sites More sharing options...
Point0 Posted December 28, 2015 Author Share Posted December 28, 2015 Fantástico. Muito Obrigado Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now