我得到的错误是:
A PHP Error was encountered
Severity: Notice
Message: Trying to get property of non-object
Filename: libraries/Yahoo.inc
Line Number: 1034
$this->load->add_package_path(APPPATH.'third_party/yahoo_lib/'); require_once(APPPATH.'third_party/yahoo_lib/libraries/Yahoo.inc'); session_start(); define('OAUTH_CONSUMER_KEY', 'REMOVEDFORSECURITY'); // Place Yoru Consumer Key here define('OAUTH_CONSUMER_SECRET', 'REMOVEDFORSECURITY'); // Place your Consumer Secret define('OAUTH_APP_ID', 'REMOVEDFORSECURITY'); // Place Your App ID here $session = YahooSession::requireSession(OAUTH_CONSUMER_KEY, OAUTH_CONSUMER_SECRET, OAUTH_APP_ID); if (is_object($session)) { $user = $session->getSessionedUser(); $profile = $user->getProfile(); if($profile) { $this->load->model('User_model'); $this->user_model->save_yahoo_data($profile); } } ?>