Oauth callback redirect does not work


I’m a newbie and I’m trying to fetch the user following posts in my application. The user logs in successfully and sees the “Redirecting back to your application” message, but after redirecting to http://My_Server/callback.php?oauth_token=someToken&oauth_verifier=someOtherToken the page does not show up in the browser and redirecting does not happen. Coming back to application page manually, the user is not logged in and must login again. Can you please help me with this?