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
Karthick RajaKarthick Raja 

How to get the feeds of followed user in Visualforce page

Hi folks,
          Can anyone tell me how to get the feeds of followed user in vIsualforce page?
My code is
<apex:page controller="VFC06_ChatterFollow" standardStylesheets="true" showHeader="false">  
   <chatter:feedwithFollowers entityId="{!$User.Id}"/>
   
   <apex:repeat value="{!userList}" var="usr"> 
       <apex:outputText value="{!usr.LastName}" /> <chatter:follow entityId="{!usr.Id}"/>
       <br/>
       
   </apex:repeat>
   
</apex:page>
 
public class VFC06_ChatterFollow{

    public list<User> userList {get;set;}
    
    public VFC06_ChatterFollow(){
        userList = [select id, lastname, firstname, profile.Name, profile.Usertype from user
                        where isactive = true
                        and profile.Usertype = 'Standard'
                        and id != :UserInfo.getUserId()];
        
    }
    
}

But I didnt get followed user feeds ..
What I have to modify the above code?

Please Help!
AshlekhAshlekh
Hi,

Hope below links helps you.

1) https://developer.salesforce.com/page/Chatter_Code_Recipes
2) Same question https://developer.salesforce.com/forums/ForumsMain?id=906F00000009AExIAM
Karthick RajaKarthick Raja
@Ashlekh,
          I have seen that link but I dono how to implement my usecase..

Please help!