function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Jamie ThompsonJamie Thompson 

How can I get friend's feeds?

I want to get friend's feeds to show them into friend profile. I was using this api to get but it did not work. I replaced userId = friend's id. Looks like I don't have a permission to access friend's feeds. Does anyone know how to get ?
/connect/communities/communityId/chatter/feeds/news/userId/feed-elements

http://www.salesforce.com/us/developer/docs/chatterapi/Content/connect_resource_feeds_news.htm#cc_news_feed_elements
jody_blyjody_bly
Use the record feed and replace recordId with the friend's ID:
http://www.salesforce.com/us/developer/docs/chatterapi/Content/connect_resource_feeds_record.htm#cc_record_feed_elements

You can also use the user-profile feed:
www.salesforce.com/us/developer/docs/chatterapi/Content/connect_resource_feeds_user_profile.htm#cc_user_profile_feed_elements