facebook/facebook-ios-sdk — Issue #398: Fix for Cancel Button in FBDialog
Author: ShlomiYehezkel
Created: 2011-10-11 20:53:58+00:00
State: open

Right now the dialog cancel button send users to the function :
[self dialogDidSucceed:url];

I fixed it in my code:
In the file FBDialog.m line 387:

replace this line: [self dialogDidSucceed:url];

with this block:
if ([[url.resourceSpecifier substringToIndex:133] isEqualToString:@"//success#_=_"])
{
[self dialogDidCancel:url];
}
else{
[self dialogDidSucceed:url];
}

I need to resubmit my app today, so I don't have time to wait for official fix...Hope it will help some one :-)