If you are generating the login link via php just change it dynamically.
For example, on the news page:
$helper = new FacebookRedirectLoginHelper('http://seusite/noticia.php');
$loginUrl = $helper->getLoginUrl();
...
and in itself to receive/verify the user back is:
if ( !empty($_GET['code']) ){
...
$helper = new FacebookRedirectLoginHelper('http://seusite/noticia.php');
try {
$session = $helper->getSessionFromRedirect();
} catch
...
* when facebook returns from login it brings this GET variable
Note: Actually this second piece of code I put should come before the first. If you have $_GET['code'] ( and/or a session variable that you will use to save the login token) log in, if not, it generates the login link (the link you will have on the button)
It opens a new window to authenticate, does not open?
– Fernando Medeiros
It actually opens in the same window. asks for authentication and login permission and then returns the login page meusite.com.br/login/
– Leno Sousa