Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 12th, 2012  |  syntax: None  |  size: 0.38 KB  |  hits: 14  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Is there any way to prevent Facebook::getLogoutUrl() logging out from Facebook.com?
  2. $next = 'ABSOLUTE_URL_TO_MY_INDEX_PAGE';
  3. $facebookApi->destroySession();
  4. $logoutUrl = $facebookApi->getLogoutUrl(array(
  5.         'next' => $next,
  6.             ));
  7. header('Location: ' . $logoutUrl);
  8.        
  9. header('Location: ' . $logoutUrl);
  10.        
  11. <?php
  12.   echo '<a href="'.$logoutUrl.'"  >Log out</a>';
  13. ?>