Мне нужно получить токен доступа из метода FB.login
в Javascript SDK. Мой код входа
FB.login(function(response) {
if (response.session) {
if (response.perms) {
} else {
// user is logged in, but did not grant any permissions
alert("No Permission..");
}
} else {
// user is not logged in
alert("Please login to facebook");
}
}, {perms:'read_stream,publish_stream,offline_access'});
Есть ли способ получить токен доступа? Я могу получить токен доступа с помощью PHP
.
Спасибо заранее....