Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I do reauthentication in Facebook using the PHP sdk?

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' })
like image 228
sarenagay Avatar asked Nov 03 '22 01:11

sarenagay


1 Answers

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

The parameters are exactly same as getLoginUrl.

like image 199
sepehr Avatar answered Nov 09 '22 09:11

sepehr