master
fengyuexingzi 8 years ago
parent edbfba66ce
commit 98b05b6935

@ -30,11 +30,13 @@
function fbLogin() { function fbLogin() {
FB.getLoginStatus(function (response) { FB.getLoginStatus(function (response) {
if (response.status === 'connected') { if (response.status === 'connected') {
fbCallInfo(response); console.log(response);
// fbCallInfo(response);
} else { } else {
FB.login(function (response) { FB.login(function (response) {
if (response.status === 'connected'){ if (response.status === 'connected'){
fbCallInfo(response); console.log(response);
// fbCallInfo(response);
} }
}, {scope: 'public_profile,email'}); }, {scope: 'public_profile,email'});
} }

Loading…
Cancel
Save