The 'next' param work with the getLogoutUrl() but don't with getLoginUrl(), what am I doing wrong?
getLogoutUrl(array('next' => site_url()))
getLoginUrl(array('next' => site_url(), 'scope' => 'email'))
The 'next' param work with the getLogoutUrl() but don't with getLoginUrl(), what am I doing wrong?
getLogoutUrl(array('next' => site_url()))
getLoginUrl(array('next' => site_url(), 'scope' => 'email'))
Should be redirect_uri for loginurl:
$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);