0👍
you have to call init function in getFaceBookPhotos function.
methods: {
getFacebookPhotos() {
console.log('Button pressed');
fbAsyncInit();
},
fbAsyncInit = function() {
FB.api('https://www.facebook.com/pg/Caf%C3%A9-The-Piperbag-2763646256994589/photos/', 'GET', { tab: 'album', album_id: '2763679070324641/photos' }, function(response) {
console.log('We got a response boys!'); // doesn't show
console.log(response); // doesn't show
})
}
}
Source:stackexchange.com