- Is there any way to prevent Facebook::getLogoutUrl() logging out from Facebook.com?
- $next = 'ABSOLUTE_URL_TO_MY_INDEX_PAGE';
- $facebookApi->destroySession();
- $logoutUrl = $facebookApi->getLogoutUrl(array(
- 'next' => $next,
- ));
- header('Location: ' . $logoutUrl);
- header('Location: ' . $logoutUrl);
- <?php
- echo '<a href="'.$logoutUrl.'" >Log out</a>';
- ?>