Reload when user logs in
===

I need to reload page when a facebook user logs in to my app 

Say if i use 


    window.location.reload()

 The page reloads indefinitely..
i need to reload the page only once after the user has logged in.

(Additional info:I am using Facebook Javascript SDK for authentication and PHP for MySql Queries)