---
schema_version: "1"
id: 637da6731d8a8db8b6662e01bd9d5d2bc2a252b63fd4e5b268ae9cc6d3e6e39f
title: Share a Feed Element (prior to Version 39.0)
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexcode/connectapi_examples_share_feed_element.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/connectapi_examples_share_feed_element.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: bc28794e6198c9257bdab4b5180d1e35558c196067c16c7c806c8cb60cbcad8b
description: Call a method to share a feed element.
---
# Share a Feed Element (prior to Version 39.0)

Call a method to share a feed element.

![Important](https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/images/icon_note_important.png)

#### Important

In API version 39.0 and later, shareFeedElement(communityId, subjectId, feedElementType, originalFeedElementId) isn’t supported. See [Share a Feed Element (in Version 39.0 and Later)](https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/connectapi_examples_share_feed_element_comment.htm "Call a method to share a feed element.").

Call [shareFeedElement(communityId, subjectId, feedElementType, originalFeedElementId)](https://developer.salesforce.com/docs/atlas.en-us.264.0.apexref.meta/apexref/apex_ConnectAPI_ChatterFeeds_static_methods.htm#apex_ConnectAPI_ChatterFeeds_shareFeedElement) to share a feed item (which is a type of feed element) with a group.

ConnectApi.ChatterLike chatterLike = ConnectApi.ChatterFeeds.likeFeedElement(null, '0D5D0000000KuGh');