My problem is when user is already logged in in facebook in another tab and anyone comes to my app it add their details to my DB even they don't click on login or register and even if that user has account on site they get logged in automatically after page refresh if they already sign in in facebook. Can anybody help me in it? Thanks in advance.