After banging my head for hours I found the work around. In the FAQs Facebook Docs says that:
https://developers.facebook.com/docs/facebook-login/web/login-button/
You can, however you will still need to use the JavaScript SDK partially. Once the login process started by clicking on the button is done, the SDK will have access to an authResponse object using FB.getLoginStatus(). You can use this function to pass the response object to your server-side code to complete any registration that exists there.
So you need to add this script to redirect you after get successful login from facebook:
<script>
window.fbAsyncInit = function() {
FB.init({
appId : 'YOUR_APP_ID',
session : SESSION_JSON, //optional
status : true,
cookie : true,
xfbml : true,
version : 'v9.0',
});
// whenever the user logs in, we refresh the page
FB.Event.subscribe('auth.facebook', function() {
window.location.reload();
});
FB.login(function(response) {
if (response.authResponse) {
console.log('Welcome! Fetching your information.... ');
window.location = "{{ YOUR_SOCIALITE_FACEBOOK_LOGIN_LINK }}";
} else {
console.log('User cancelled login or did not fully authorize.');
}
});
};
</script>