Share via


SPSocialFeedManager.GetFeedFor method

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)

Syntax

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

returnValue = instance.GetFeedFor(actorId, _
    options)
public SPSocialFeed GetFeedFor(
    string actorId,
    SPSocialFeedOptions options
)

Parameters

  • 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.

Return value

Type: Microsoft.Office.Server.Social.SPSocialFeed
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.

See also

Reference

SPSocialFeedManager class

SPSocialFeedManager members

Microsoft.Office.Server.Social namespace