function fetchFeedElements($pt = 'story', $selId = 0, $referfbid = 0)
 {
     switch ($pt) {
         case 'story':
             $postArray = array();
             require_once PATH_CORE . '/classes/newswire.class.php';
             $nwObj = new newswire($this->db);
             $feedElements = $nwObj->fetchPostedStoryInfo($selId);
             break;
         case 'challenge':
             require_once PATH_CORE . '/classes/challenges.class.php';
             $challengesObj = new challenges($this->db);
             $feedElements = $challengesObj->fetchPostedChallengeInfo($selId);
             break;
         case 'reward':
             require_once PATH_CORE . '/classes/prizes.class.php';
             $rewardsObj = new rewards($this->db);
             $feedElements = $rewardsObj->fetchPostedRewardInfo($selId);
             break;
         case 'invite':
             $feedElements = array();
             $feedElements['title'] = 'Check out ' . SITE_TITLE;
             require_once PATH_FACEBOOK . '/classes/actionTeam.class.php';
             $teamObj = new actionTeam($this->db);
             if ($referfbid == 0) {
                 $feedElements['story'] = $teamObj->fetchProfileSummaryForProfileBox(0);
             } else {
                 $feedElements['story'] = $teamObj->fetchProfileSummaryForProfileBox(0, URL_CANVAS . '/?referfbid=' . $referfbid);
             }
             //$feedElements['story']=$this->fetchInviteText();
             $feedElements['image'] = '';
             $feedElements['storyLink'] = URL_CANVAS;
             break;
     }
     $feedElements['pubType'] = $pt;
     return $feedElements;
 }