Share via


SocialFeedManager.GetFeed method

Gets a feed of activity by the current user, and optionally by followed people and content or by the user's organization.

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

Syntax

'Declaration
Public Function GetFeed ( _
    type As SocialFeedType, _
    options As SocialFeedOptions _
) As ClientResult(Of SocialFeed)
'Usage
Dim instance As SocialFeedManager
Dim type As SocialFeedType
Dim options As SocialFeedOptions
Dim returnValue As ClientResult(Of SocialFeed)

returnValue = instance.GetFeed(type, options)
public ClientResult<SocialFeed> GetFeed(
    SocialFeedType type,
    SocialFeedOptions options
)

Parameters

Return value

Type: Microsoft.SharePoint.Client.ClientResult<SocialFeed>
The requested feed based on the specified parameters.

Remarks

When you retrieve a feed for the current user, you specify a feed type. The feed type that you request specifies whether to include activity from followed people and content or from the user's whole organization. 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.

See also

Reference

SocialFeedManager class

SocialFeedManager members

Microsoft.SharePoint.Client.Social namespace