Export (0) Print
Expand All

SocialFeedManager.GetFeedFor method

SharePoint 2013

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

Namespace:  Microsoft.SharePoint.Client.Social
Assembly:  Microsoft.SharePoint.Client.UserProfiles (in Microsoft.SharePoint.Client.UserProfiles.dll)

'Declaration
Public Function GetFeedFor ( _
	actorId As String, _
	options As SocialFeedOptions _
) As ClientResult(Of SocialFeed)
'Usage
Dim instance As SocialFeedManager
Dim actorId As String
Dim options As SocialFeedOptions
Dim returnValue As ClientResult(Of SocialFeed)

returnValue = instance.GetFeedFor(actorId, _
	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.

options
Type: Microsoft.SharePoint.Client.Social.SocialFeedOptions

Feed retrieval options such as date range and sort order.

You can only retrieve the Personal feed type for a user who is not the current user. For more information, see Overview of feed types and How to: Create and delete posts and retrieve the social feed by using the .NET client object model in SharePoint 2013.

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 ID of the thread or root post.

Show:
© 2014 Microsoft