I have written code like this
SPServiceContext context = SPServiceContext.GetContext(site);
Uri uri = new Uri("http://localhost:1000/");
var socialCommentManager = new SocialCommentManager(context);
// Get last 24 hrs notes
TimeSpan tInterval = new TimeSpan(24, 0, 0);
DateTime tSchedule = DateTime.Now - tInterval;
SocialComment[] allComments = socialCommentManager.GetComments(uri, 100, 0, tSchedule);
foreach (SocialComment comment in allComments)
{
// Print statement goes here
}
When I excute the code it returns only the home page notes not on other page or library. Am I missing anything here?