SPSocialFeedManager.GetFeedFor method

SharePoint 2013

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

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

Public Function GetFeedFor ( _
	actorId As String, _
	options As SPSocialFeedOptions _
) As SPSocialFeed
Dim instance As SPSocialFeedManager
Dim actorId As String
Dim options As SPSocialFeedOptions
Dim returnValue As SPSocialFeed

returnValue = instance.GetFeedFor(actorId, _


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.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 for the specified user or team site.

You can only retrieve the Personal feed type for a user who is not the current user.