-1

I'm trying to add Facebook Comments across my website. The XFBML code given by Facebook requires a specific a specific href value:

<fb:comments href="http://www.url.com" num_posts="3" width="800"></fb:comments>

How can I grab the URL of the page and add it to the without it triggering the "Warning: http://invalid.invalid/ is unreachable."

bkaid
  • 51,465
  • 22
  • 112
  • 128
Ed Fry
  • 93
  • 1
  • 6

1 Answers1

0

Just do this in your .aspx page:

<!-- language: c# -->
<fb:comments href="<%=Request.Url.ToString()%>" num_posts="3" width="800"></fb:comments>
DMCS
  • 31,720
  • 14
  • 71
  • 104