FB.ui({
method: 'share',
href: 'https://developers.facebook.com/docs/',
}, function(response){
if (response && !response.error_code) {
alert('Sucess');
} else {
alert('Error while posting.');
}
});
I Use above code, but issue is when i click on Share button,
1. If i am not login Previously, then Two button display Login and Cancel and if
I click on cancel button, Response is
alert('Sucess');
, which is not right, show please tell me what can i do?????
Work Well When
when i click on Share button,
2 If User Already login,then again Two button display Share and Cancel and if
I click on Share it give me alert('Sucess');
when click on Cancel it give me alert('Error while posting.');
so in Second case it work well, and in first case cancel button not give proper responce, please advise me..