SPSocialFeedManager.GetFeedFor(String, SPSocialFeedOptions) SPSocialFeedManager.GetFeedFor(String, SPSocialFeedOptions) SPSocialFeedManager.GetFeedFor(String, SPSocialFeedOptions) Method

Definition

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

public:
 Microsoft::Office::Server::Social::SPSocialFeed ^ GetFeedFor(System::String ^ actorId, Microsoft::Office::Server::Social::SPSocialFeedOptions ^ options);
[Microsoft.SharePoint.Client.ClientCallable]
public Microsoft.Office.Server.Social.SPSocialFeed GetFeedFor (string actorId, Microsoft.Office.Server.Social.SPSocialFeedOptions options);
Public Function GetFeedFor (actorId As String, options As SPSocialFeedOptions) As SPSocialFeed
Parameters
actorId
String String 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.

options
SPSocialFeedOptions SPSocialFeedOptions SPSocialFeedOptions

Feed retrieval options such as date range and sort order.

Returns

The requested feed for the specified user or team site.

Remarks

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

Applies to