I use FBStreamDialog to let users publish on their news feed.
[fbStreamDialog show];
makes the dialog view popup, the user can press cancel or submit that message.
Now...my problem is that both buttons close the dialog view and call the delegate method dialogDidSucceed.
How do I find out which button was pressed? Its very important for me to know, any useful advice would be reaally really nice!
Thanks, John
ok... didnt want to give up. just in case somebody else gets the same problem..
if you do not mind making a slight modification to the fbconnect original code - open FBDialog.m and add the following line to -(void)webViewDidFinishLoad...
[_webView stringByEvaluatingJavaScriptFromString:@"document.getElementById('cancel').onclick = function onclick(event) { window.location.href = 'fbconnect:cancel'; }"];
this will call the dialogDidCancel delegate method instead the dialogDidSucceed.
cheers.