简体   繁体   English

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

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

The 'next' param work with the getLogoutUrl() but don't with getLoginUrl(), what am I doing wrong? “下一个”参数与 getLogoutUrl() 一起使用,但不与 getLoginUrl() 一起使用,我做错了什么?

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

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

Should be redirect_uri for loginurl:对于 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);

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM