Facebook Login
// Get the page we were before
$redirect = Session::get('loginRedirect', 'hirer/account');
The domain became this
http://domain.com/hirer/account#_=_
What is the #= behind how do i not display it?
You may be able to get back into your Facebook account by using an alternate email or mobile phone number listed on your account. Using a computer or mobile phone that you have previously used to log into your Facebook account, go to facebook.com/login/identify and follow the instructions.
You may be able to get back into your Facebook account by using an alternate email or mobile phone number listed on your account. Using a computer or mobile phone that you have previously used to log into your Facebook account, go to facebook.com/login/identify and follow the instructions.
Although this thread is old, but hope this might help someone else. I have seen some people resolve the problem by adding javascript code to the redirected page to remove the #_=_ from the location.
However, that is ugly for me. There is another way of solving this issue from back-end. You can make your redirect url to contains the your own anchor # so that it will overwrite the #_=_ added by facebook. For example, this is my Laravel's handleProviderCallback:
public function handleProviderCallback()
{
$user = Socialize::with('facebook')->user();
// add the user to your database if it doesn't exist
// redirect the user to home page, the anchor # is
// to overwrite #_=_ anchor added by facebook
return redirect('/#');
}
Yes they append it after redirecting from Facebook. There doesn't seem to be a way to remove it from your PHP/Laravel code.
But you can remove it using Javascript like here: stackoverflow.com/a/7297873/783875
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With