Index: facebook-platform/php4client/facebookapi_php4_restlib.php =================================================================== --- facebook-platform/php4client/facebookapi_php4_restlib.php (revision 47936) +++ facebook-platform/php4client/facebookapi_php4_restlib.php (working copy) @@ -39,6 +39,7 @@ var $api_key; var $facebook; var $error_code; + var $error_msg; var $friends_list; // to save making the friends.get api call, this will get prepopulated on canvas pages var $added; // to save making the users.isAppAdded api call, this will get prepopulated on canvas pages var $call_as_apikey; @@ -57,6 +58,7 @@ $this->last_call_id = 0; $this->facebook = &$facebook; $this->error_code = 0; + $this->error_msg = ''; $this->call_as_apikey = ''; $this->server_addr = $this->facebook->get_facebook_url('api') . '/restserver.php'; if (!empty($GLOBALS['facebook_config']['debug'])) { @@ -1491,6 +1493,7 @@ function call_method($method, $params) { $this->error_code = 0; + $this->error_msg = ''; if ($this->call_as_apikey) { $params['call_as_apikey'] = $this->call_as_apikey; @@ -1519,6 +1522,7 @@ } if (is_array($result) && isset($result['error_code'])) { $this->error_code = $result['error_code']; + $this->error_msg = $result['error_msg']; return null; } return $result;