---
schema_version: "1"
id: 98b8281278d4211894eb86b6b0c4c7eddbc401d7b9e2135e811a7ba0ca2a8787
title: Get Feed Elements From Another User’s Feed
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexcode/connectapi_examples_get_feed_elements_another_user.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/connectapi_examples_get_feed_elements_another_user.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 14f2ee5a6747a45fea3a5692bbbf469b7bac5a73481ec4763277eced6e65d044
description: Call a method to get feed elements from another user’s feed.
---
# Get Feed Elements From Another User’s Feed

Call a method to get feed elements from another user’s feed.

Call [getFeedElementsFromFeed(communityId, feedType, subjectId)](https://developer.salesforce.com/docs/atlas.en-us.264.0.apexref.meta/apexref/apex_ConnectAPI_ChatterFeeds_static_methods.htm#apex_ConnectAPI_ChatterFeeds_getFeedElementsFromFeed_2) to get the first page of feed elements from another user’s feed.

ConnectApi.FeedElementPage fep = ConnectApi.ChatterFeeds.getFeedElementsFromFeed(Network.getNetworkId(), ConnectApi.FeedType.UserProfile, '005R0000000HwMA');

This example calls the same method to get the first page of feed elements from another user’s record feed.

ConnectApi.FeedElementPage fep = ConnectApi.ChatterFeeds.getFeedElementsFromFeed(Network.getNetworkId(), ConnectApi.FeedType.Record, '005R0000000HwMA');

The getFeedElementsFromFeed method is overloaded, which means that the method name has many different signatures. A signature is the name of the method and its parameters in order.

Each signature lets you send different inputs. For example, one signature can specify the feed type and the subject ID. Another signature could have those parameters and an extra parameter to specify the maximum number of comments to return for each feed element.