Facebook Bookmark

Mar 4, 2009 at 1:54 AM
Anyone tried to add a facebook bookmark top the PostView.ascx page?
I cant work out what the code should be... :(

Mar 4, 2009 at 7:14 PM
worked it our i think  this seems to do the trick;

<a rel="nofollow" href="http://www.facebook.com/share.php?u=<%=Server.UrlEncode(Post.AbsoluteLink.ToString()) %>&amp;title=<%=Server.UrlEncode(Post.Title) %>">Facebook it</a>
Sep 8, 2009 at 5:17 PM

I tried that and it is using the ASCII code on the <%=Server.UrlEncode(Post.AbsoluteLink.ToString()) %>.  So the link comes out like. http://www.facebook.com/share.php?u=http%3a%2f%2fwww.mysite.com%2fblog%2fpost%2fTesting-this-Blog.aspx&title=Testing+this+Blog

How do I fix this?<!--erver.UrlEncode(Post.AbsoluteLink.ToString())-->