drl959975 2019-06-03 10:10
浏览 76

auth_type = reauthenticate(在FB登录URL中),如果先前已登录,则不要求用户输入PASSWORD。 我正在使用PHP SDK

I am using PHP SDK to manage my application. So if user clicks on my custom login button they must be asked to enter their login credentials whether they are previously logged-in.

Application was login-in to the user through method getLoginUrl(), but it never ask to reauthenticate if user is previously logged-in. We have already set Force Web OAuth Reauthentication to Yes in FB login settings.

I am trying to login like this:

$helper = $fb->getRedirectLoginHelper();
$permissions = ['manage_pages','publish_pages'];
$loginUrl = $helper->getReAuthenticationUrl(fb-callback-url.php', $permissions);

The getReAuthenticationUrl() method is generating login URL like:

https://www.facebook.com/v2.9/dialog/oauth?auth_type=reauthenticate&client_id=xxxxxx...

I expect that above FB login URL will ask user to provide login credentials whether they are previously logged-in.

But still it's not asking to enter user login details if user is previously logged-in and it directly take the user to accept APP T&C. Our FB APP is pending to be approved because of this issue.

  • 写回答

0条回答 默认 最新

    报告相同问题?