public function testAnAppSecretProofIsGeneratedAsExpected()
 {
     $appSecretProof = AppSecretProof::make('foo_access_token', 'foo_app_secret');
     $this->assertEquals('12f5dcbb7557d24b1d37fd180c45991c5999f325ece0af331c00a85d762f2b95', $appSecretProof);
 }
 /**
  * Generate and return the params for this request.
  *
  * @return array
  */
 public function getParams()
 {
     $params = $this->params;
     if (!isset($params['access_token']) && $this->getAccessToken()) {
         $params['access_token'] = $this->getAccessToken();
     }
     if (!isset($params['appsecret_proof']) && isset($params['access_token'])) {
         $params['appsecret_proof'] = AppSecretProof::make($params['access_token'], $this->app->getSecret());
     }
     return $params;
 }
 /**
  * Get the app secret proof that was used for this response.
  *
  * @return string
  */
 public function getAppSecretProof()
 {
     return AppSecretProof::make($this->accessToken, $this->app->getSecret());
 }