Hi,
I put the facebook "like this" widget on my pages and i have a problem:
My url is dynamically constructed with this method:
protected String getCurrentUrl()
{
return Server.HtmlEncode(Request.Url.AbsoluteUri);
}
so the facebook iframe is:
<iframe src="http://www.facebook.com/plugins/like.php?href=<%= getCurrentUrl() %>&layout=standard&show_faces=true&width=450&action=like&font=verdana&colorscheme=light&height=80"
scrolling="no" frameborder="0" style="border: none; overflow: hidden; width: 450px;
height: 80px;" allowtransparency="true"></iframe>
Well, an example of the getCurrentUrl result is:
http://gramma.ro/Site/DetaliiProdus.aspx?c=m1&p=427&s1=41&s2=72
But, because of those "&" (& - when encoded) facebook does not correctly grab the link:
- it takes:
instead of the whole one of the above...so it stops at the first &.
Do you see any workaround?