in /home/nfsp/public_html/vendor/facebook/graph-sdk/src/Facebook/Exceptions/FacebookResponseException.php at line 115
return new static($response, $previousException); } } switch ($code) { // Login status or token expired, revoked, or invalid case 100: case 102: case 190: return new static($response, new FacebookAuthenticationException($message, $code)); // Server issue, possible downtime case 1: case 2: return new static($response, new FacebookServerException($message, $code)); // API Throttling case 4: case 17:
/** * Instantiates an exception to be thrown later. */ public function makeException() { $this->thrownException = FacebookResponseException::create($this); } /** * Returns the exception that was thrown for this request. * * @return FacebookResponseException|null
if (!is_array($this->decodedBody)) { $this->decodedBody = []; } if ($this->isError()) { $this->makeException(); } } /** * Instantiate a new GraphObject from response. *
{ $this->request = $request; $this->body = $body; $this->httpStatusCode = $httpStatusCode; $this->headers = $headers; $this->decodeBody(); } /** * Return the original request that returned this response. * * @return FacebookRequest
static::$requestCount++; $returnResponse = new FacebookResponse( $request, $rawResponse->getBody(), $rawResponse->getHttpResponseCode(), $rawResponse->getHeaders() ); if ($returnResponse->isError()) { throw $returnResponse->getThrownException(); }
public function sendRequest($method, $endpoint, array $params = [], $accessToken = null, $eTag = null, $graphVersion = null) { $accessToken = $accessToken ?: $this->defaultAccessToken; $graphVersion = $graphVersion ?: $this->defaultGraphVersion; $request = $this->request($method, $endpoint, $params, $accessToken, $eTag, $graphVersion); return $this->lastResponse = $this->client->sendRequest($request); } /** * Sends a batched request to Graph and returns the result. * * @param array $requests
return $this->sendRequest( 'GET', $endpoint, $params = [], $accessToken, $eTag, $graphVersion ); } /** * Sends a POST request to Graph and returns the result. *
// $response = $fb->get( // '/debug_token?input_token=EAAs36mg6MvQBANXXZBrp74TVHaRw5yjjbC42Q8151gxdSM1YBD3AZA2zYgFxkVbO2Ptwk5TYJM3P6tV3HEa5ZCANsJU2N2nGSs7XtHVuZB547OyiUa3ri99tGGV2y6ictOsHFT89L7tRCJeOxRA0rvLT8vgbXwEUQDmUwU8jdwZDZD','EAAs36mg6MvQBANXXZBrp74TVHaRw5yjjbC42Q8151gxdSM1YBD3AZA2zYgFxkVbO2Ptwk5TYJM3P6tV3HEa5ZCANsJU2N2nGSs7XtHVuZB547OyiUa3ri99tGGV2y6ictOsHFT89L7tRCJeOxRA0rvLT8vgbXwEUQDmUwU8jdwZDZD' // ); // $graphNode = $response->getGraphNode(); // // print_r($graphNode);die; $response = $fb->get( '/oauth/access_token?grant_type=fb_exchange_token&client_id=3157704654336756&client_secret=6b6fb8d144c33ba2e512e349d7a9bbde&fb_exchange_token='.$token,$token ); if(!empty($response) && isset($response)){ $graphNode = $response->getGraphNode(); }
$args = $this->controller->bindActionParams($this, $params); Yii::debug('Running action: ' . get_class($this->controller) . '::' . $this->actionMethod . '()', __METHOD__); if (Yii::$app->requestedParams === null) { Yii::$app->requestedParams = $args; } return call_user_func_array([$this->controller, $this->actionMethod], $args); } }
} $result = null; if ($runAction && $this->beforeAction($action)) { // run the action $result = $action->runWithParams($params); $result = $this->afterAction($action, $result); // call afterAction on modules foreach ($modules as $module) { /* @var $module Module */
$parts = $this->createController($route); if (is_array($parts)) { /* @var $controller Controller */ list($controller, $actionID) = $parts; $oldController = Yii::$app->controller; Yii::$app->controller = $controller; $result = $controller->runAction($actionID, $params); if ($oldController !== null) { Yii::$app->controller = $oldController; } return $result; }
$params = $this->catchAll; unset($params[0]); } try { Yii::debug("Route requested: '$route'", __METHOD__); $this->requestedRoute = $route; $result = $this->runAction($route, $params); if ($result instanceof Response) { return $result; } $response = $this->getResponse(); if ($result !== null) {
{ try { $this->state = self::STATE_BEFORE_REQUEST; $this->trigger(self::EVENT_BEFORE_REQUEST); $this->state = self::STATE_HANDLING_REQUEST; $response = $this->handleRequest($this->getRequest()); $this->state = self::STATE_AFTER_REQUEST; $this->trigger(self::EVENT_AFTER_REQUEST); $this->state = self::STATE_SENDING_RESPONSE; $response->send();
require(__DIR__ . '/../../vendor/yiisoft/yii2/Yii.php'); require(__DIR__ . '/../../common/config/bootstrap.php'); require(__DIR__ . '/../config/bootstrap.php'); $config = require(__DIR__ . '/../config/test-local.php'); (new yii\web\Application($config))->run();
$_GET = [ 'key' => '0', ];