Skip to content

Commit 0423278

Browse files
committed
test logout url token
1 parent 3b151fe commit 0423278

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/base_facebook.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ public function getLogoutUrl($params=array()) {
544544
'logout.php',
545545
array_merge(array(
546546
'next' => $this->getCurrentUrl(),
547-
'access_token' => $this->getAccessToken(),
547+
'access_token' => $this->getUserAccessToken(),
548548
), $params)
549549
);
550550
}

tests/tests.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -649,6 +649,7 @@ public function testLogoutURLDefaults() {
649649
$encodedUrl = rawurlencode('http://fbrell.com/examples');
650650
$this->assertNotNull(strpos($facebook->getLogoutUrl(), $encodedUrl),
651651
'Expect the current url to exist.');
652+
$this->assertFalse(strpos($facebook->getLogoutUrl(), self::SECRET));
652653
}
653654

654655
public function testLoginStatusURLDefaults() {

0 commit comments

Comments
 (0)