|
|||
When I log in using JConnector, and simply logout from facebook, facebookapi_php5_restlib.php generates an unhandled exception and joomla displays a blank page.
I modified the file so that the exception does not occur, but you should put it on the main code Code:
/**
* Returns 1 if the user has the specified permission, 0 otherwise.
* http://wiki.developers.facebook.com/index.php/Users.hasAppPermission
*
* @return integer 1 or 0
*/
public function &users_hasAppPermission($ext_perm, $uid=null) {
try {
return $this->call_method('facebook.users.hasAppPermission',
array('ext_perm' => $ext_perm, 'uid' => $uid));
} catch (Exception $e) {
return array(0,0);
}
}
|






Linear Mode
