Permalink
Browse files

test logout url token

  • Loading branch information...
1 parent 3b151fe commit 04232784d34c35cf474919f65e4f5704b7eb8bbe @daaku daaku committed Jul 16, 2012
Showing with 2 additions and 1 deletion.
  1. +1 −1 src/base_facebook.php
  2. +1 −0 tests/tests.php
View
2 src/base_facebook.php
@@ -544,7 +544,7 @@ public function getLogoutUrl($params=array()) {
'logout.php',
array_merge(array(
'next' => $this->getCurrentUrl(),
- 'access_token' => $this->getAccessToken(),
+ 'access_token' => $this->getUserAccessToken(),
), $params)
);
}
View
1 tests/tests.php
@@ -649,6 +649,7 @@ public function testLogoutURLDefaults() {
$encodedUrl = rawurlencode('http://fbrell.com/examples');
$this->assertNotNull(strpos($facebook->getLogoutUrl(), $encodedUrl),
'Expect the current url to exist.');
+ $this->assertFalse(strpos($facebook->getLogoutUrl(), self::SECRET));
}
public function testLoginStatusURLDefaults() {

0 comments on commit 0423278

Please sign in to comment.