For some reason, the code being generated inside Facebook developer does not work. Actually, the problem is on the profile_id parameter which is not recognized by the likebox.php. Instead, id should be used.


<iframe src="http://www.facebook.com/plugins/likebox.php?id=[YOUR_PAGE_ID_HERE]&width=298&connections=10&stream=false&header=true" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:298px; height:290px"> </iframe>

If still that doesn’t work, then you can use the legacy code as below.

<iframe src="http://www.facebook.com/connect/connect.php?id=[YOUR_PAGE_ID_HERE]&connections=10&stream=0&locale=en_US" allowtransparency="true" style="border: medium none; width: 300px; height: 240px;" scrolling="no" frameborder="0"></iframe>

I tried both and they all worked as expected.

Source:
http://forum.developers.facebook.net/viewtopic.php?id=56454&p=1

11 Thoughts on “Facebook Like Box Not Working [solved]

  1. Thank you!! I was trying to fix another blogger’s FB Like Box after she accidently deleted the one I put in before, and it just wouldn’t work this time! But, your code fixed it! Thanks again! 🙂

  2. AzlanYussof on July 16, 2011 at 9:23 am said:

    wahhh..it really works..this is awesome..thank you very much because solve my problem.

  3. YAY! After 1 hour pulling my hair out found your post and it worked! Thanks!

  4. THANK YOU!

  5. Hi!
    With your codes I make the box appear (yeah!), but… everything else – the whole content of the page but a menu- is gone! Well, not really gone, it just doesn’t show…

  6. Thank you!!!!!!!!! I have been tearing my hair out about this all yesterday afternoon and this afternoon. I used every fix and suggestion I found in various blogs, forums etc and yours does the job. Thank you so so much for sharing 🙂 It doesn’t look perfect just yet but a few tweaks and I’ll get it to look right.

  7. I tried this solution on my client’s website, yyy.nowandagainSLC.com , the Like Box shows up fine on my screen, but at the client’s place (he is the owner of the page), he does NOT see the stream of data. He only sees a few friends that Liked this (only showing activity).

    Any other suggestions? joe-At-palmtreecreative.com

  8. I went for the iFrame option, inserted my FB page url, got the code generated and pasted it in the html. Yet, the like box wouldn’t display.
    It drove me insane until I noticed that somehow the code generated was <iframe src="//www.facebook.com/plugins/likebox.php?(etc)
    Yes, http: was missing before the double slash.
    Added it (<iframe src="hxxp://www.facebook.com…) and it worked just fine! 🙂

  9. Arundhati on February 23, 2012 at 2:18 am said:

    Thank you very very much… I was tired experimenting around it.

  10. jayanth on March 26, 2012 at 5:29 pm said:

    is that possible to include the names and profile pictures of the user’s friends who have also liked the page with above i frame code??

  11. atanasiusfw on April 20, 2012 at 11:23 am said:

    Thanks for the tips. It appears in my blog now.

Post Navigation