I have the following code:
FB.getLoginStatus(function (response) { if (response.session) { } else { FB.ui({ method: 'oauth', perms: 'email,publish_stream', }, function (response) { if (response && response.installed) { window.location.reload(); } }); } }); What I want is to basically redirect the user to the same page so that the serverside can use the REST API. Is there anyway to make this work?