title: Issues getting the Facebook PHP SDK to work on my application
body: <p>I was making a facebook application in which i have to show news feeds of the user who is using it. I am using graph API to do this. The problem is that its not getting me feeds.
  I used it to show friends like this:</p>
  
  <pre><code>$friends = $facebook-&gt;api('/me/friends');
  </code></pre>
  
  <p>and it is working fine.</p>
  
  <p>For news feeds i use this:</p>
  
  <pre><code>$feeds   = $facebook-&gt;api('/me/home');
  </code></pre>
  
  <p>it shows me an error:</p>
  
  <pre><code>Fatal error: Uncaught IDInvalidException: Invalid id: 0 thrown in 
  /home/content/58/6774358/html/test/src/facebook.php on line 560
  </code></pre>
  
  <p>when i try to get Profile feed (Wall) by using this:</p>
  
  <pre><code>$feeds   = $facebook-&gt;api('/me/feed');
  </code></pre>
  
  <p>it shows me an empty array.</p>
  
  <p>These API calls are showing me results in the graph API page but don't know why not working in my application.Can any one help me please..
  My full code is as follows</p>
  
  <pre><code>require_once 'src/facebook.php';
  </code></pre>
  
  <p>// Create our Application instance.
  $facebook = new Facebook(array(
    'appId' => 'xxxxx',
    'secret' => 'xxxxx',
    'cookie' => true,
  )); </p>
  
  <pre><code>$session = $facebook-&gt;getSession();
      $fbme = null;
  // Session based graph API call.
  if (!empty($session)){
      $fbme = $facebook-&gt;api('/me');
  }
  if ($fbme) {
       $logoutUrl = $facebook-&gt;getLogoutUrl();
       echo '&lt;a href="'.$logoutUrl.'"&gt;Logout&lt;/a&gt;';
  }else{
      $loginUrl = $facebook-&gt;getLoginUrl();
       echo '&lt;a href="'.$loginUrl.'"&gt;Logout&lt;/a&gt;';
  }
  $friends = $facebook-&gt;api('/me/friends?access_token='.$session["access_token"]);
  $feeds   = $facebook-&gt;api('/me/feed?access_token='.$session["access_token"]); 
  print('&lt;pre&gt;Herere:');print_r($feeds);die;
  </code></pre>