After the facebook login by default it redirects to the homepage. So I open a new tab and paste a spesific page to this tab, it automaticly logged out and I have to login again and this new tab redirect homepage again. There is a loop. I don't want my visitors lost their pages which they're looking when they decide to login with facebook.
How can I obtain redirect to the page which user logged in?