Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.StringThe 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
Type: Microsoft.Office.Server.Social.SPSocialFeedOptionsFeed 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.
Remarks
You can only retrieve the Personal feed type for a user who is not the current user.