/**
  * 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');
 }
 public function testSignedRequestDataCanBeRetrievedFromPostData()
 {
     $_POST['signed_request'] = $this->rawSignedRequestAuthorized;
     $rawSignedRequest = $this->helper->getRawSignedRequest();
     $this->assertEquals($this->rawSignedRequestAuthorized, $rawSignedRequest);
 }