Merge pull request #5694 from nuvipannu/facebook-force-login

Handle authentication type in Facebook
This commit is contained in:
Zoltan Olah
2016-05-11 10:40:58 -07:00

View File

@@ -36,6 +36,11 @@ Facebook.requestCredential = function (options, credentialRequestCompleteCallbac
'&display=' + display + '&scope=' + scope +
'&state=' + OAuth._stateParam(loginStyle, credentialToken, options && options.redirectUrl);
// Handle authentication type (e.g. for force login you need authType: "reauthenticate")
if (options.authType) {
loginUrl += "&authType=" + encodeURIComponent(options.authType);
}
OAuth.launchLogin({
loginService: "facebook",
loginStyle: loginStyle,