title: Twitter Oauth home timeline display with php
body: <p>$hometime= $Twitter->get_statusesHome_timeline();</p>
  
  <p>Fatal error: Uncaught exception 'Exception' with message 'SimpleXMLElement::__construct() expects parameter 1 to be string</p>
  
  <pre><code>&lt;?php
          include 'EpiCurl.php';
          include 'EpiOAuth.php';
          include 'EpiTwitter.php';
          include 'key.php';
  
          $Twitter = new EpiTwitter($consumerKey, $consumerSecret);
          $oauthToken='xxxxxxxxxxxxxxxxxxxxxxx';
          $oauthSecret='xxxxxxxxxxxxxxxxxxxxxxxxx';
  
               // user switched pages and came back or got here directly, stilled logged in
               $Twitter-&gt;setToken($oauthToken,$oauthSecret);
               $user= $Twitter-&gt;get_accountVerify_credentials();
  
         echo "&lt;img src=\"{$user-&gt;profile_image_url}\"&gt;";
         echo "{$user-&gt;name}";
  
  
          $hometime= $Twitter-&gt;get_statusesHome_timeline();
  
          $twitter_status = new SimpleXMLElement($hometime);
          foreach($twitter_status-&gt;status as $status){
              echo '&lt;div class="twitter_status"&gt;';
              foreach($status-&gt;user as $user){
                  echo '&lt;img src="'.$user-&gt;profile_image_url.'" class="twitter_image"&gt;';
                  echo '&lt;a href="http://www.twitter.com/'.$user-&gt;name.'"&gt;'.$user-&gt;name.'&lt;/a&gt;: ';
              }
              echo $status-&gt;text;
              echo '&lt;br/&gt;';
              echo '&lt;div class="twitter_posted_at"&gt;&lt;strong&gt;Posted at:&lt;/strong&gt; '.$status-&gt;created_at.'&lt;/div&gt;';
              echo '&lt;/div&gt;';
          }
  
               ?&gt;
  </code></pre>