title: Getting posts (poster name, photo, text body) into VF page from specific Chatter group - Struggling getting into VF
body: <p>I am working off of some code I found on the Internet - I have only been on the ADM 201 course.</p>
  
  <p>What I am doing is attempting to pull the information from a post and then put this into a VF page. I know I can use chatter:feed, but this is getting all of the information and functions, whereas I need only the text body, poster name, and picture (not essential).</p>
  
  <p>What I have so far:</p>
  
  <p>Apex Class:</p>
  
  <pre><code>    public class Test_3 {        //Class is 
  public ConnectApi.FeedElementPage feedElementPage{get;set;}
  public Test_3() {
      feedElementPage =    ConnectApi.ChatterFeeds.getFeedElementsFromFeed('0F958000000TWvL',   ConnectApi.FeedType.Record, 'showInternalOnly');
      }
      }
  </code></pre>
  
  <p>VF page:</p>
  
  <pre><code>&lt;apex:page controller="Test_5"&gt;
     &lt;div class="posts"&gt;
        &lt;div class="row"&gt;
        &lt;div class="col-md-6"&gt;
          &lt;apex:repeat value="{!feed.elements}" var="feedElement"&gt;
              &lt;div class="media"&gt;
                  &lt;a class="pull-left" href="{!feedElement.parent.id}"&gt;
                  &lt;img class="media-object" src="{!feedElement.photoUrl}" alt="{!feedElement.actor.name}"/&gt;
                      &lt;/a&gt;
                      &lt;div class="media-body"&gt;
                          &lt;h4 class="media-heading"&gt;{!feedItem.actor.name}&lt;/h4&gt;
                          // This creates a heading from the posts that is the poster's name
                          {!feedElement.body.text}
                          // This is the body of the post
                          &lt;/div&gt;
                      &lt;/div&gt;
         &lt;/apex:repeat&gt;
        &lt;/div&gt;
   &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
     <hr/>
  
  <pre><code> &lt;footer&gt;
      &lt;p&gt;&amp;copy; Operations Updates - Please refresh your browser for the latest&lt;/p&gt;
   &lt;/footer&gt;
  &lt;/apex:page&gt;
  </code></pre>
  
  <p>Current issues:</p>
  
  <ul>
  <li>!feedElement.parent.id</li>
  <li>!feedItem.actor.name</li>
  <li>"Error: Unknown property 'ConnectApi.Feed.elements'"</li>
  </ul>
  
  <p>Anyway, I can't work this out. I've been trying to make this for a lovely 5 hours now.</p>
  
  <p>Any help would be much appreciated.</p>
  
  <p>The code was modified from <a href="http://appirio.com/category/tech-blog/2014/01/chatter-apex/" rel="nofollow">here</a> and then I attempted to update it to Elements from Items.</p>
  
  <p>Thanks</p>