How can I reauthenticate on Facebook using PHP sdk?

advertisements

I'd want the user to re input password before they can login to my app. The facebook documentation only shows it using the Javascript SDK. Can someone please guide me or give me some references on how to do it using php?

here's what it looks like in js:

FB.login(function(response) {
// Original FB.login code
}, { auth_type: 'reauthenticate' })


Follow the official documentation but use getReAuthenticationUrl method instead of getLoginUrl.

The parameters are exactly same as getLoginUrl.