Programmatically reply on a social post in SharePoint 2013 personal or site feed

After my post about programmatically posting to SharePoint 2013 personal and site feeds, I’ve got a question about programmatically replying on the posts.

Well, it’s actually the same – you just past the post ID as the first argument of the SPSocialFeedManager.CreatePost method:

//create a reply
feedManager.CreatePost(postid, postCreationData);

You can get the post IDs from the feeds – I was writing recently about getting user’s personal feed or a site feed – you can easily get the post IDs on that way 🙂

And no, you cannot reply to the reply – threading that way is not supported 🙂