Share via


SocialFeedManager.LikePost method

Makes the current user a liker of the specified microblog post.

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

Syntax

'Declaration
Public Function LikePost ( _
    postId As String _
) As ClientResult(Of SocialThread)
'Usage
Dim instance As SocialFeedManager
Dim postId As String
Dim returnValue As ClientResult(Of SocialThread)

returnValue = instance.LikePost(postId)
public ClientResult<SocialThread> LikePost(
    string postId
)

Parameters

  • postId
    Type: System.String

    The unique identifier of the post to like.

Return value

Type: Microsoft.SharePoint.Client.ClientResult<SocialThread>
A digest of the modified thread that includes the specified post.

See also

Reference

SocialFeedManager class

SocialFeedManager members

Microsoft.SharePoint.Client.Social namespace