public function testAppSecretProof() { FacebookSession::enableAppSecretProof(true); $request = new FacebookRequest(FacebookTestHelper::$testSession, 'GET', '/me'); $this->assertTrue(isset($request->getParameters()['appsecret_proof'])); FacebookSession::enableAppSecretProof(false); $request = new FacebookRequest(FacebookTestHelper::$testSession, 'GET', '/me'); $this->assertTrue(!isset($request->getParameters()['appsecret_proof'])); }