· Chris Hammond
Last Updated

Adding Facebook Comments using Razor in DotNetNuke

Learn how to integrate Facebook Comments into your DotNetNuke site! Follow our guide for adding comments to individual articles using Razor and the Razor Host module. #DotNetNuke #Razor #Facebook

Learn how to integrate Facebook Comments into your DotNetNuke site! Follow our guide for adding comments to individual articles using Razor and the Razor Host module. #DotNetNuke #Razor #Facebook

The other day I posted on how to add the new Facebook Comments to your DotNetNuke website. This worked okay for basic modules that only had one content display, but for a module like DNNSimpleArticle this didn’t work well as the URLs for each article didn’t come across as individual URLs because of the way the Facebook code is formatted. When displaying the Comments I also only wanted to show them on individual articles, not on the main article listing.

There is actually a pretty easy fix though, a number of options, you could write a very simple module to do this, you could embed some of this into your Skin, or the method I chose. I wanted to make this work using Razor with the new Razor Host module in DotNetNuke 5.6.1.

For instructions on how to get the Razor Host module installed you should watch the following Video.

Share:
Back to Blog

Related Posts

View All Posts »
DNN (DotNetNuke) 9.9.0 released!

DNN (DotNetNuke) 9.9.0 released!

Exciting news for #DNNSummit attendees – the release of DNN Platform 9.9.0! Discover the latest tips and tricks at the conference. Read more at weblogs.asp.net.