We need to give community user ability to like the feed item. Tried below code.
System.NoAccessException: Insufficient Privileges: You do not have the level of access necessary to perform the operation you requested. Please contact the owner of the record or your administrator if access is necessary.
This code is working with the standard user but not for the community user. Is there any setting for this?