I've created a subsite based upon the "Collaboration/Project Site" template.
This template creates a newsfeed content of type MicroFeed.
I would like to use CSOM to extract the content of the posts entered in the Microfeed.
I've tried using both the Microsoft.SharePoint.Client.Microfeed and Microsoft.Sharepoint.Client.Social feed managers to retrieve the posts with no success.
Here's a version of the code that I've tried with the Microfeed namespace
var ctx = new ClientContext(@"https://somewhere.sharepoint.com/projects/test"); SecureString passWord = new SecureString(); foreach (char c in "pwd".ToCharArray()) passWord.AppendChar(c); ctx.Credentials = new SharePointOnlineCredentials("emailAddr", passWord); var mf = new MicrofeedManager(ctx); ctx.Load(mf); ctx.ExecuteQuery(); var threads = mf.GetMyConsolidatedFeed(new MicrofeedRetrievalOptions()); ctx.ExecuteQuery();
but the threads count is always 0.
The doc's that I've found so far are really sketchy.
Can anyone point me in the right direction?