This is the code I’m putting on my website:
<iframe src="http://www.facebook.com/plugins/like.php?app_id=5766773068&href&send=false&layout=standard&width=47&show_faces=false&action=like&colorscheme=light&font&height=35" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:47px; height:35px;" allowTransparency="true"></iframe>
An implemented example URL is:
Whenever I press ‘like’, nothing seems to happen, and if I expand the frame size to see what is happened it just says ‘error’.
I keep trying to use:
http://developers.facebook.com/docs/reference/plugins/like/
But it is really temperamental sometimes giving me code other times not. Do I have to specify the URL? I was under the assumption this was not needed to ‘like’ the current page.
Please note on my homepage the like button works fine, but the url is specified. So can anyone see what I’m doing wrong?
As phadej has noted, you are missing the
hrefattribute from your iFrame call. The thing to note from the Like button documentation is this:You are using the iFrame version, so this is why you must include
hrefA useful tool that you might like to bookmark is the Facebook URL linter which will show you any errors in your Open Graph tags or missing information, as well as try and help you figure out anything that is going wrong.