SPSocialFeedManager.GetFeed method

SharePoint 2013

Gets a feed of activity by the current user, and optionally by followed people and content or by the user's organization.

Namespace:  Microsoft.Office.Server.Social
Assembly:  Microsoft.Office.Server.UserProfiles (in Microsoft.Office.Server.UserProfiles.dll)

public SPSocialFeed GetFeed(
	SPSocialFeedType type,
	SPSocialFeedOptions options


Type: Microsoft.Office.Server.Social.SPSocialFeedType

The feed type to retrieve.

Type: Microsoft.Office.Server.Social.SPSocialFeedOptions

Feed retrieval options such as date range and sort order.

Return value

Type: Microsoft.Office.Server.Social.SPSocialFeed
The requested feed based on the specified parameters.

The feed type specifies whether to include activity from followed people and content or from the user's whole organization. For more information, see Overview of feed types.

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 thread ID.