Facebook integration like Box

I work on a website and have to integrate Facebook-Box.

I entered the Facebook identifier, then it generates some code, but I can’t click the XFBML IFRAME button and the URL to generate the codes, only the HTML5 button .

So far I have this code:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"> <html> <head> <title>Page Under Construction</title> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1"> </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/de_DE/all.js#xfbml=1"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script> <div class="fb-like-box" data-href="http://www.facebook.com/pages/RW- Fliesen/115860578491339" data-width="292" data-show-faces="false" data-colorscheme="light" data-stream="false" data-header="false"></div> </body> </html> 

which gives me this result .

But I need the whole box of Like.

+4
source share
2 answers

On the page https://developers.facebook.com/docs/reference/plugins/like/ , if we create such a button, we will get the code, as you indicated in the link ...

If we check the source code (in mozilla or chrome), you can see the <a class="uiPillButton" href="#" id="button-xfbml">XFBML</a> for the XFBML link.

Since href = #, it will not show another page ... facebook can work on this

+1
source

I ran into the same problem, there is an error in the src script, "http:" missing

take a look at the image: http://solarlogos.wordpress.com/2012/08/21/facebook-like-box-bug/

0
source

All Articles