예제 #1
0
 /**
  * Initialize the helper and process available signed request data.
  *
  * @param FacebookApp $app The FacebookApp entity.
  * @param FacebookClient $client The client to make HTTP requests.
  * @param string|null $graphVersion The version of Graph to use.
  */
 public function __construct(FacebookApp $app, FacebookClient $client, $graphVersion = null)
 {
     parent::__construct($app, $client, $graphVersion);
     if (!$this->signedRequest) {
         return;
     }
     $this->pageData = $this->signedRequest->get('page');
 }
 /**
  * Initialize the helper and process available signed request data.
  *
  * @param FacebookApp $app The FacebookApp entity.
  */
 public function __construct(FacebookApp $app)
 {
     parent::__construct($app);
     if (!$this->signedRequest) {
         return;
     }
     $this->pageData = $this->signedRequest->get('page');
 }