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, UserProfileFeed, NewsFeed, or object feed, such as AccountFeed. This object is available in API version 21.0 and later.
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.
You can't query FeedLike records directly. They can only be queried via the parent NewsFeed, UserProfileFeed, or entity feed, such as AccountFeed. For example, the following query returns information, including child FeedLike records:
SELECT ID, CreatedDate, CreatedById, CreatedBy.FirstName,CreatedBy.LastName,
(SELECT CreatedById, CreatedBy.FirstName, CreatedBy.LastName
FROM FeedLikes ORDER BY CreatedDate DESC)
FROM NewsFeed
ORDER BY CreatedDate DESC, ID DESC
LIMIT 20
FeedLike records represent likes on posts and not likes on comments. Likes on comments can’t be queried via the API.