public function __construct($app_id, $user_login, $user_password)
 {
     parent::__construct();
     $this->app_id = $app_id;
     $this->user_login = $user_login;
     $this->user_password = $user_password;
     $this->curl->setOpt(CURLOPT_SSL_VERIFYPEER, false);
     $this->curl->setOpt(CURLOPT_COOKIESESSION, true);
     $this->curl->setOpt(CURLOPT_COOKIEJAR, $this->cookie_file);
     $this->curl->setOpt(CURLOPT_COOKIEFILE, $this->cookie_file);
 }
 public function __construct($access_token, $user_id = null)
 {
     parent::__construct();
     $this->access_token = $access_token;
     $this->user_id = $user_id;
 }