Facebook SDK: How to redirect after sucessfull login? -


i bit confused authresponsechange event.

once go fb app : https://apps.facebook.com/f-local

i logged in through cookie on server side automatically , the moment javascript firing, if (response.status === 'connected') true.

fb.event.subscribe('auth.authresponsechange', function (response) {     if (response.status === 'connected') {         window.location.reload();     }         } 

the first time refreshes site, intending do. surprisingly event keeps firing every time, though user logged in, hence there shouldn't authresponsechange in place @ all, yet keeps firing , ends in infinite loop.

i quite stuck this. how reload site after first successful login?


Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -