javascript - Can I redirect the browser if the user clicks 'Don't Allow'? -
i've implemented facebook login on website, using javascript api , fbml.
when user clicks login, enters credentials popup window, goes next stage , clicks 'don't allow' when prompted permissions, window closes , nothing else happens.
i want change when window closes, browser redirects url of choice.
is possible current setup, using javascript api?
i'm assuming mean xfbml, since can't use except fbjs in fbml. code fb.login documentation:
fb.login(function(response) { if (response.session) { // user logged in } else { // user cancelled login } }); whatever goes in else block happens if don't authorization. top.location.href work there.
Comments
Post a Comment