1

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

getLogoutUrl(array('next' => site_url()))

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

1 回答 1

1

应该是 loginurl 的 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);
于 2012-04-09T04:50:44.230 回答