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
MrHammyMrHammy 

Visualforce chatter group feed on a VF page

I want to build a view of a chatter group to put inside a VF page, I feel i am missing something fundamental, I just can see what

I can get the elements 
global ConnectApi.FeedElementPage getFeedItems() {
 
        System.Debug('>>>>>>group id ' + groupId ) ;
        System.Debug('>>>>>>community id ' +  communityId) ;
        ConnectApi.FeedElementPage items = ConnectApi.ChatterFeeds.getFeedElementsFromFeed(communityId , ConnectApi.FeedType.Record , groupId);
        return items;
    }

and then call it on a visualforce page
 
<apex:repeat value="{!feedItems}" var="x">
          <div>
                     
            <apex:outputPanel >
            
            {!x.currentPageUrl}
             
            </apex:outputPanel>
          </div>
        </apex:repeat>

But all i show is   /services/data/v32.0/connect/communities/0DBC0000000CdsLOAS/chatter/feeds/record/0F9M00000009NEfKAM/feed-elements. If i just show  !x i get all the elements

 
SlashApex (Luis Luciani)SlashApex (Luis Luciani)
Hi MrHammy,

The approach you are taking will require you to do a lot of development on the VF side in order to present the feeds. If you are ok with just showing the chatter group feed using the core SF UI, you could just do the following on the VF page.
 
<chatter:feed entityId="{!groupId}"/>

Hope that helps!
MrHammyMrHammy
Sorry I missed the overriding issue, only on chatter element on a page, I am setting up a personal and a group feed on this page as well as other links and reports, kind of a one stop shop for our partner community, I have to do it the hard way if it can even be done