Reputation: 143
I'm trying to get the facebook comments plugin working on my aspx page..but it is not appearing on the page.
I am using the Facebook.NET api from codeplex for authorization. I inserted the code that was generated from the Facebook Comments plugin page...
<div id="fb-root"></div>
<script src="http://connect.facebook.net/en_US/all.js#appId={MyApp's ID}&amp;xfbml=1"></script>
<div>
<fb:comments numposts="15" width="425" publish_feed="true"></fb:comments>
</div>
I can see that the script is retrieved by inspecting the resulting html code in firebug...but can't figure out why the plugin is not being rendered...
any help is appreciated...thx
Upvotes: 0
Views: 1619
Reputation: 11
Ok, i found out the solution,
It seems that the tag should be within the element.
just move the script tag within the and it will work
Following code worked for me.
<div id="fb-root">
<script src="http://connect.facebook.net/en_US/all.js#appId=__YOUR_APP_KEY_HERE&xfbml=1"></script>
</div>
by doing the above i got the comments box to show up....
Now the problem is that, when i click on the POST Button, it doesn't post it... have to figure out why... anyone has solution for this ?
Upvotes: 1