I’m wanting a Facebook like button on my home page (I have it working fine on individual posts) and I’m getting different results depending upon the way I implement it.
If I generate code from http://developers.facebook.com/docs/reference/plugins/like and plug in my URL, I get a button saying 17 people have liked the page.
But if I use PHP code instead of the URL , like this…
<iframe src="http://www.facebook.com/plugins/like.php?href=<?php the_permalink(); ?>&layout=button_count&show_faces=false&width=100&action=like&colorscheme=dark" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:100px; height:20px;"></iframe>
…I get a button saying 240 people have liked it. Much better!
But if someone clicks to Like it, their FB profile shows…
NAME likes http://</?php+the_permalink%28%29%3B+%3F%3E
Any suggestions for variations of php the_permalink that I can try?