Facebook PHP SDK - 'next' 参数与 getLogoutUrl 一起使用,但不与


Facebook PHP SDK - 'next' param work with getLogoutUrl but don't with getLoginURL()

'next' 参数使用 getLogoutUrl() 但不使用 getLoginUrl(),我做错了什么?

getLogoutUrl(array('next' => site_url()))
getLoginUrl(array('next' => site_url(), 'scope' => 'email'))

应该为登录网址redirect_uri:


$params = array(
  scope => 'your_permissions_here',
  redirect_uri => 'Redirect_URL' //user will be redirected to this URL on both success or failure
);
  $loginUrl = $facebook->getLoginUrl($params);