[英]Facebook PHP SDK - 'next' param work with getLogoutUrl but don't with getLoginURL()
“下一個”參數與 getLogoutUrl() 一起使用,但不與 getLoginUrl() 一起使用,我做錯了什么?
getLogoutUrl(array('next' => site_url()))
getLoginUrl(array('next' => site_url(), 'scope' => 'email'))
對於 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.