• Heya Everyone,
    I installed Facebook’s brand new plugin at https://www.commenti.org before a few days. Till now, everything was working fine, but now its giving some error like Fatal error: Wrong parameters for Exception([string $exception [, long $code ]]) in /home/content/01/6060501/html/wp-content/plugins/facebook/includes/facebook-php-sdk/base_facebook.php on line 54 and when i checked the php file its like
    /**
    * Make a new API Exception with the given result.
    *
    * @param array $result The result from the API server
    */
    public function __construct($result) {
    $this->result = $result;

    $code = isset($result[‘error_code’]) ? $result[‘error_code’] : 0;

    if (isset($result[‘error_description’])) {
    // OAuth 2.0 Draft 10 style
    $msg = $result[‘error_description’];
    } else if (isset($result[‘error’]) && is_array($result[‘error’])) {
    // OAuth 2.0 Draft 00 style
    $msg = $result[‘error’][‘message’];
    } else if (isset($result[‘error_msg’])) {
    // Rest server style
    $msg = $result[‘error_msg’];
    } else {
    $msg = ‘Unknown Error. Check getResult()’;
    }

    parent::__construct($msg, $code); //line 54
    }

    Anyone there to help??

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘{Plugin : Facebook} Cant make a new post..’ is closed to new replies.