Home > Uncategorized > Facebook getLogoutUrl() redirects to Facebook home page

Problem:
Facebook getLogoutUrl() redirects to Facebook home page

Solution:
Add access token to parameter array

$params = array(
'next' => $url,
'access_token' => $access_token,
);
$logout_url = $facebook->getLogoutUrl($params);



Flag Counter