javascript - Facebook Like Box Disappearing -
so whenever add first part of script (everything window.fbasyncinit way fb.canvas.setautoresize(100);), facebook box doesn't pop up.
all i'm trying remove iframe scrollbars box, has done in submission facebook.
why adding function @ top make box disappear? how make scrollbars go away?
i trying follow instructions here:
http://clockworkcoder.blogspot.com/2011/02/how-to-removing-facebook-application-i.html
here's code:
<script> window.fbasyncinit = function() { fb.init({ appid: '388149184641600', status: true, cookie: true, xfbml: true }); fb.canvas.setautoresize(100); (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/en_us/all.js#xfbml=1&appid=388149184641600"; fjs.parentnode.insertbefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script>
you're missing closing bracket:
<script> window.fbasyncinit = function() { fb.init({ appid: '388149184641600', status: true, cookie: true, xfbml: true }); fb.canvas.setautoresize(100); }; // here (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/en_us/all.js#xfbml=1&appid=388149184641600"; fjs.parentnode.insertbefore(js, fjs); }(document, 'script', 'facebook-jssdk')); </script>
Comments
Post a Comment