Facebook::getLogoutUrl( $params=array() )This method returns a URL that, when clicked by the user, will log them out of their Facebook session and then redirect them back to your application.
$params = array( 'next' => 'https://www.myapp.com/after_logout' );
$facebook->getLogoutUrl($params); // $params is optional.
This method takes an optional $params array containing the following key and value pairs:
| Name | Description |
|---|---|
next |
(optional) Next URL to which to redirect the user after logging out (should be an absolute URL). |