SocialFeedManager.GetFeedFor method

SharePoint Online

Gets a feed of activity by the specified user or team site.

Namespace:  Microsoft.SharePoint.Client.Social
Assembly:  Microsoft.SharePoint.Client.UserProfiles (in Microsoft.SharePoint.Client.UserProfiles.dll)

public ClientResult<SocialFeed> GetFeedFor(
	string actorId,
	SocialFeedOptions options


Type: System.String

The unique identifier of the user or team site to retrieve the feed for. For a user, you can use the account name or email address. For a site feed on a team site, use the format http://<server>/<teamSite>/newsfeed.aspx.

Type: Microsoft.SharePoint.Client.Social.SocialFeedOptions

Feed retrieval options such as date range and sort order.

You can only retrieve the Personal feed type for a user who is not the current user. For more information, see Overview of feed types and How to: Create and delete posts and retrieve the social feed by using the .NET client object model in SharePoint 2013.

If a thread contains more than two replies, the server returns a digest of the thread that contains only the two most recent replies. (Thread digests have the IsDigest thread attribute applied.) If you want to get all the replies in a thread, call the GetFullThread method and pass in the ID of the thread or root post.