Indicates that a user has liked a feed item. FeedLike records represent
likes on posts and not likes on comments. Likes on comments can’t
be queried via the API. A FeedLike is a child
object of an associated FeedItem, FeedTrackedChange, or object feed, such as AccountFeed. This object is available in API version
21.0 and later.
Supported Calls
create(), delete(), describeSObjects()
Special Access Rules
If the logged-in user has
the Insert System Field
Values for Chatter Feeds user permission, the create field property is available on CreatedById and CreatedDate system
fields for this object. This allows the logged-in user to set these
fields to the original post author and creation date upon migration
instead of accepting the system field value when migrated, which would
be the logged-in user and the date the migration was performed, respectively.
The fields can't be updated after migration.
Fields
| FeedItemId
|
- Type
- reference
- Properties
- Create, Filter, Group, Sort
- Description
- ID of the feed item that the user liked.
|
| FeedEntityId
|
- Type
- reference
- Properties
- Create, Filter, Group, Sort
- Description
-
The Id of a feed item or feed comment the user liked.
If the user liked a comment, FeedEntityId is set to the ID of the
comment. If the user liked a feed item, FeedEntityId is set to the
ID of the feed item.
FeedEntityId is an optional field. The
default value is the ID of the feed item.
|
| InsertedById
|
- Type
- reference
- Properties
- Filter, Group, Sort
- Description
- ID of the user who added this object
to the feed. For example, if a client application migrates multiple
posts and comments from another application into a feed, then InsertedById is set to the ID of the logged-in user.
|
Usage
You can't query FeedLike records directly.
They can only be queried via the entity feed, such
as AccountFeed.
FeedLike records represent
likes on posts and not likes on comments. Likes on comments can’t
be queried via the API.