Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

ConnectApi.ChatterLikesCapability

If a feed element has this capability, the context user can like it. Exposes information about existing likes.

Subclass of ConnectApi.FeedElementCapability.

Property Name Type Description Available Version
isLikedBy​CurrentUser Boolean Indicates whether the feed element is liked by the context user (true) or not (false). 32.0
page ConnectApi.​ChatterLikePage Likes information for this feed element. 32.0
likesMessage ConnectApi.​MessageBody A message body that describes who likes the feed element. 32.0
myLike ConnectApi.​Reference If the context user has liked the feed element, this property is a reference to the specific like, null otherwise. 32.0