Click here to Skip to main content
15,868,340 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#
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..
Posted
Updated 9-Sep-15 22:35pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900