Getting Same Facebook "Like" count for different URLS
I'm trying to add multiple "Like" buttons on the same page but specifying different like URL's
I have 2 URLs that I want to "Like" on a separate page
http://www.spoilertv.com/search/label/Brothers%2开发者_Python百科0And%20Sisters http://www.spoilertv.com/search/label/Better%20With%20You
Here is my code.
Better With You <iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.spoilertv.com%2Fsearch%2Flabel%2FBetter%2520With%2520You&layout=button_count&show_faces=false&width=150&action=like&font=verdana&colorscheme=light&height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:150px; height:21px;" allowTransparency="true"></iframe>
Brothers and Sisters <iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.spoilertv.com%2Fsearch%2Flabel%2FBrothers%2520And%2520Sisters&layout=button_count&show_faces=false&width=150&action=like&font=verdana&colorscheme=light&height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:150px; height:21px;" allowTransparency="true"></iframe>
The problem is that they both show the same "Like" count.
What am I doing wrong?
Thanks in advance for any help
IMO the problem is that the spaces (%20) are converted to (%2520) within the Facebook iframe.
Try to use the space unicode (%20) directly:
Better With You <iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.spoilertv.com%2Fsearch%2Flabel%2FBetter%20With%20You&layout=button_count&show_faces=false&width=150&action=like&font=verdana&colorscheme=light&height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:150px; height:21px;" allowTransparency="true"></iframe>
Brothers and Sisters <iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.spoilertv.com%2Fsearch%2Flabel%2FBrothers%20And%20Sisters&layout=button_count&show_faces=false&width=150&action=like&font=verdana&colorscheme=light&height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:150px; height:21px;" allowTransparency="true"></iframe>
Hope it helps :)
One solution which is not very good but will work: Make a Facebook page for each URL. And then use likeboxes for the pages on your website.
精彩评论