Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FacebookApiException
- An active access token must be used to query information about the current user.
- /home/oxmedia/public_html/oxapps.pl/apps/pocztexquiz/protected/extensions/facebook/base_facebook.php(1072)
- 1060 return true;
- 1061 }
- 1062
- 1063 /**
- 1064 * Analyzes the supplied result to see if it was thrown
- 1065 * because the access token is no longer valid. If that is
- 1066 * the case, then the persistent store is cleared.
- 1067 *
- 1068 * @param $result array A record storing the error message returned
- 1069 * by a failed API call.
- 1070 */
- 1071 protected function throwAPIException($result) {
- 1072 $e = new FacebookApiException($result);
- 1073 switch ($e->getType()) {
- 1074 // OAuth 2.0 Draft 00 style
- 1075 case 'OAuthException':
- 1076 // OAuth 2.0 Draft 10 style
- 1077 case 'invalid_token':
- 1078 // REST server errors are just Exceptions
- 1079 case 'Exception':
- 1080 $message = $e->getMessage();
- 1081 if ((strpos($message, 'Error validating access token') !== false) ||
- 1082 (strpos($message, 'Invalid OAuth access token') !== false)) {
- 1083 $this->setAccessToken(null);
- 1084 $this->user = 0;
- Stack Trace
- #0
- – /home/oxmedia/public_html/oxapps.pl/apps/pocztexquiz/protected/extensions/facebook/base_facebook.php(777): BaseFacebook->throwAPIException(array("error" => array("message" => "An active access token must be used to query information about t...", "type" => "OAuthException", "code" => 2500)))
- 772 $params
- 773 ), true);
- 774
- 775 // results are returned, errors are thrown
- 776 if (is_array($result) && isset($result['error'])) {
- 777 $this->throwAPIException($result);
- 778 }
- 779
- 780 return $result;
- 781 }
- 782
- #1
- unknown(0): BaseFacebook->_graph("me/friends")
- #2
- – /home/oxmedia/public_html/oxapps.pl/apps/pocztexquiz/protected/extensions/facebook/base_facebook.php(586): call_user_func_array(array(Facebook, "_graph"), array("me/friends"))
- 581 public function api(/* polymorphic */) {
- 582 $args = func_get_args();
- 583 if (is_array($args[0])) {
- 584 return $this->_restserver($args[0]);
- 585 } else {
- 586 return call_user_func_array(array($this, '_graph'), $args);
- 587 }
- 588 }
- 589
- 590 /**
- 591 * Constructs and returns the name of the cookie that
- #3
- – /home/oxmedia/public_html/oxapps.pl/apps/pocztexquiz/protected/components/Controller.php(125): BaseFacebook->api("me/friends")
- 120 Yii::app()->session['friends'] = $friends;
- 121 } else {
- 122 $friends = Yii::app()->session['friends'];
- 123 }
- 124
- 125 $friends = $facebook->api('me/friends');
- 126 $friends_count = count($friends['data']);
- 127
- 128 if ($friends_count > 4) {
- 129 try {
- 130 $db_user = User::model()->findByAttributes(array('facebook_id' => $user));
- #4
- + /home/oxmedia/public_html/oxapps.pl/apps/yii/web/CController.php(298): Controller->beforeAction(CInlineAction)
- #5
- + /home/oxmedia/public_html/oxapps.pl/apps/yii/web/CController.php(278): CController->runAction(CInlineAction)
- #6
- + /home/oxmedia/public_html/oxapps.pl/apps/yii/web/CController.php(257): CController->runActionWithFilters(CInlineAction, array())
- #7
- + /home/oxmedia/public_html/oxapps.pl/apps/yii/web/CWebApplication.php(277): CController->run("")
- #8
- + /home/oxmedia/public_html/oxapps.pl/apps/yii/web/CWebApplication.php(136): CWebApplication->runController("")
- #9
- + /home/oxmedia/public_html/oxapps.pl/apps/yii/base/CApplication.php(158): CWebApplication->processRequest()
- #10
- + /home/oxmedia/public_html/oxapps.pl/apps/pocztexquiz/index.php(13): CApplication->run()
- 2012-11-06 10:16:13 Apache Yii Framework/1.1.8
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement