SPSocialFeedManager.LikePost method
Makes the current user a liker of the specified microblog post.
Namespace: Microsoft.Office.Server.Social
Assembly: Microsoft.Office.Server.UserProfiles (in Microsoft.Office.Server.UserProfiles.dll)
Syntax
'Declaration
Public Function LikePost ( _
postId As String _
) As SPSocialThread
'Usage
Dim instance As SPSocialFeedManager
Dim postId As String
Dim returnValue As SPSocialThread
returnValue = instance.LikePost(postId)
public SPSocialThread LikePost(
string postId
)
Parameters
postId
Type: System.StringThe unique identifier of the post to like.
Return value
Type: Microsoft.Office.Server.Social.SPSocialThread
A digest of the modified thread that includes the specified post.