php - Fatal error: Uncaught OAuthException: (#200) Requires extended permission: read_stream -


fatal error: uncaught oauthexception: (#200) requires extended permission: read_stream thrown in /home/a1607618/public_html/base_facebook.php on line 1033

my app tend read user wall posts

if ($user) {     $comments = $facebook->api('/me/home');     d($comments); }  function d($d){     echo '<pre>';     foreach ($d $a => $b)     {         print "$a: $b\n";     }     echo '</pre>'; } 

i give app extended permission: read_stream through apps_>connectme_>permissions

and here line 1033

protected function throwapiexception($result) {     $e = new facebookapiexception($result);     switch ($e->gettype()) {         // oauth 2.0 draft 00 style         case 'oauthexception':         // oauth 2.0 draft 10 style         case 'invalid_token':         $message = $e->getmessage();         if ((strpos($message, 'error validating access token') !== false) ||            (strpos($message, 'invalid oauth access token') !== false)) {             $this->setaccesstoken(null);             $this->user = 0;             $this->clearallpersistentdata();         }     }      throw $e; } 


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -