I’m using this to get permissions from the user.This is get permission but not redirecting.I get a blank page.
FB.login(function(response) {
if (response.session) {
if (response.scope) {
document.location.href='xxx.php';
} else {
// user is logged in, but did not grant any permissions
} else {
}
}, {scope:'read_stream,publish_stream'});
Thanks in advance.
The following works good for me: