Recently, I was implementing the Facebook Social plug-ins and encountered this strange error.
The situation is like this:
I already had the facebook fan box (Now renamed as facebook like-box) on my site and was working perfectly fine.
I just wanted to add the facebook like button (Which allows visitors to click it to mark their liking) on site. For this, I obtained the respective button code and ran my site.
And the result was fine if i was not currently logged in to my facebook account. The "like button" showed up correctly along with the facebook fan box (Like box).
But when I logged in to my facebook account and visited my website, the result was really unexpected. Here is the screen shot of the error.
Errors:
- When I click the like-button, it throws an error saying that NO-URL was specified even though I used the XFBML tag and implemented the facebook javascript SDK.
- The facebook fan box(like box) shows the my facebook home page. This is really weird as it should show the fan list instead of my facebook home page on this site.

I even visited a couple of other sites who have implemented facebook fan box earlier and they also showed the same error.
Solution to facebook like-button and like-box error:
After a long session of hit and trial, I finally managed to find a solution:
- The facebook javascript is off-course essential to use the new like button and like box in an effective manner. You can find the javascript library code here. This remains unchanged.
- The facebook like button code also remains.
- The old code of facebook like box :

would not work with the new facebook like button and the javascript SDK. This seems to be the issue.
I just changed the above code also with the new one and both controls (like button and like box) started behaving as desired. Here is the new code:

I hope it will help you in case you also faced the same issue.
This is a QR code for this article. It contains the link for this article and can be scanned through a QR code reader application in your mobile to quickly open it in any mobile browser.