I tried to write a little application to get some kinds of extended Analytics.
I could get some very interesting numbers about Usage, Search terms, Used Memory etc. But while trying to access all Threads in the Newsfeed of a Teamsite I found a little barrier. When you try to find out how many posts do exist in one SiteCollection you can do that via:
var feedOption = new SPSocialFeedOptions
{
SortOrder = SPSocialFeedSortOrder.ByCreatedTime,
MaxThreadCount = 2000
};
var feeds = feedManager.GetFeedFor($"{mySite.Url}/newsfeed.aspx", feedOption);
But when you count the number of Threads in the feed:
feeds.Threads.Length
You will get a maximum of 100 Threads. It seems to be irrelevant what value you set for "MaxThreadCount", you only get Thread 0-99 (also tried using int.MaxValue).
Even if the MicroFeed list in that SiteCollection has 300 Posts, I can`t get the correct number of posts with the feedManager.
I couldn`t find any hint about this limitation in the MSDN description of the SPSocialFeed class or the Threads.
Is there another way to get the number of all existing Threads in a site newsfeed?