Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Nov 6th, 2012  |  syntax: None  |  size: 3.99 KB  |  views: 170  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. FacebookApiException
  2.  
  3. An active access token must be used to query information about the current user.
  4.  
  5. /home/oxmedia/public_html/oxapps.pl/apps/pocztexquiz/protected/extensions/facebook/base_facebook.php(1072)
  6.  
  7. 1060     return true;
  8. 1061   }
  9. 1062
  10. 1063   /**
  11. 1064    * Analyzes the supplied result to see if it was thrown
  12. 1065    * because the access token is no longer valid.  If that is
  13. 1066    * the case, then the persistent store is cleared.
  14. 1067    *
  15. 1068    * @param $result array A record storing the error message returned
  16. 1069    *                      by a failed API call.
  17. 1070    */
  18. 1071   protected function throwAPIException($result) {
  19. 1072     $e = new FacebookApiException($result);
  20. 1073     switch ($e->getType()) {
  21. 1074       // OAuth 2.0 Draft 00 style
  22. 1075       case 'OAuthException':
  23. 1076         // OAuth 2.0 Draft 10 style
  24. 1077       case 'invalid_token':
  25. 1078         // REST server errors are just Exceptions
  26. 1079       case 'Exception':
  27. 1080         $message = $e->getMessage();
  28. 1081       if ((strpos($message, 'Error validating access token') !== false) ||
  29. 1082           (strpos($message, 'Invalid OAuth access token') !== false)) {
  30. 1083         $this->setAccessToken(null);
  31. 1084         $this->user = 0;
  32. Stack Trace
  33. #0     
  34. –  /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)))
  35. 772       $params
  36. 773     ), true);
  37. 774
  38. 775     // results are returned, errors are thrown
  39. 776     if (is_array($result) && isset($result['error'])) {
  40. 777       $this->throwAPIException($result);
  41. 778     }
  42. 779
  43. 780     return $result;
  44. 781   }
  45. 782
  46. #1     
  47.  unknown(0): BaseFacebook->_graph("me/friends")
  48. #2     
  49. –  /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"))
  50. 581   public function api(/* polymorphic */) {
  51. 582     $args = func_get_args();
  52. 583     if (is_array($args[0])) {
  53. 584       return $this->_restserver($args[0]);
  54. 585     } else {
  55. 586       return call_user_func_array(array($this, '_graph'), $args);
  56. 587     }
  57. 588   }
  58. 589
  59. 590   /**
  60. 591    * Constructs and returns the name of the cookie that
  61. #3     
  62. –  /home/oxmedia/public_html/oxapps.pl/apps/pocztexquiz/protected/components/Controller.php(125): BaseFacebook->api("me/friends")
  63. 120                                     Yii::app()->session['friends'] = $friends;
  64. 121                                 } else {
  65. 122                                     $friends = Yii::app()->session['friends'];
  66. 123                                 }
  67. 124
  68. 125                                 $friends = $facebook->api('me/friends');
  69. 126                                 $friends_count = count($friends['data']);
  70. 127
  71. 128                                 if ($friends_count > 4) {
  72. 129                                     try {
  73. 130                                         $db_user = User::model()->findByAttributes(array('facebook_id' => $user));
  74. #4     
  75. +  /home/oxmedia/public_html/oxapps.pl/apps/yii/web/CController.php(298): Controller->beforeAction(CInlineAction)
  76. #5     
  77. +  /home/oxmedia/public_html/oxapps.pl/apps/yii/web/CController.php(278): CController->runAction(CInlineAction)
  78. #6     
  79. +  /home/oxmedia/public_html/oxapps.pl/apps/yii/web/CController.php(257): CController->runActionWithFilters(CInlineAction, array())
  80. #7     
  81. +  /home/oxmedia/public_html/oxapps.pl/apps/yii/web/CWebApplication.php(277): CController->run("")
  82. #8     
  83. +  /home/oxmedia/public_html/oxapps.pl/apps/yii/web/CWebApplication.php(136): CWebApplication->runController("")
  84. #9     
  85. +  /home/oxmedia/public_html/oxapps.pl/apps/yii/base/CApplication.php(158): CWebApplication->processRequest()
  86. #10    
  87. +  /home/oxmedia/public_html/oxapps.pl/apps/pocztexquiz/index.php(13): CApplication->run()
  88. 2012-11-06 10:16:13 Apache Yii Framework/1.1.8