fb share callback needs fb login – user’s approval

function ClickFBLike() { FB.login(function(response) { console.log(‘FB.login response’, response); FB.ui({ method: ‘share’, href: ‘http://youdomain.com/?ppp=test’, caption: ‘title….’, }, function(response){ if (response && !response.error_code) { console.log(‘success!!’); } else { console.log(‘cancelation!!’); } }); }); }

Read More