+ 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