Paulo Alberto Posted August 13, 2012 Report Share Posted August 13, 2012 (edited) Olá pessoal,Estou querendo colocar a like box em um site, não sei onde estou errando então se alguém puder me dar um luz eu agradeço. Tentei de várias formas, com o XFBML, html5, iframe.Obrigado.Código com iframe:<html><head></head><body><iframe src="//www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2Fplatform&width=292&height=290&colorscheme=light&show_faces=true&border_color&stream=false&header=true" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:292px; height:290px;" allowTransparency="true"></iframe></body></html>[/codebox]Codigo com XFBML[codebox]<html xmlns:fb="http://ogp.me/ns/fb#"><head><title></title></head><body><div id="fb-root"></div><script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/pt_BR/all.js#xfbml=1"; fjs.parentNode.insertBefore(js, fjs);}(document, 'script', 'facebook-jssdk'));</script><fb:like-box href="http://www.facebook.com/platform" width="270" height="290" show_faces="true" stream="false" header="true"></fb:like-box></body></html> Edited August 13, 2012 by Paulo Alberto Quote Link to comment Share on other sites More sharing options...
Question
Paulo Alberto
Olá pessoal,
Estou querendo colocar a like box em um site, não sei onde estou errando então se alguém puder me dar um luz eu agradeço. Tentei de várias formas, com o XFBML, html5, iframe.
Obrigado.
Código com iframe:
Codigo com XFBML
<html xmlns:fb="http://ogp.me/ns/fb#">
<head><title></title></head>
<body>
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/pt_BR/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<fb:like-box href="http://www.facebook.com/platform" width="270" height="290" show_faces="true" stream="false" header="true"></fb:like-box>
</body>
</html>
Link to comment
Share on other sites
0 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.