Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Hello I just follow link by @Oh Danny Boy and I found this solution</p> <p>from this thread : <a href="http://forum.developers.facebook.net/viewtopic.php?pid=303257#p303257" rel="nofollow">http://forum.developers.facebook.net/viewtopic.php?pid=303257#p303257</a> Fixed this by adding the following to webViewDidFinishLoad: in FBDialog.m</p> <pre><code>[_webView stringByEvaluatingJavaScriptFromString:@"document.getElementsByName('cancel')[0].onclick = function onclick(event) { window.location.href = 'fbconnect://cancel'; return false;}"]; </code></pre> <p>This makes the cancel button correctly call "fbconnect://cancel" rather than "fbconnect://success".</p> <pre><code>- (void)webViewDidFinishLoad:(UIWebView *)webView { [_webView stringByEvaluatingJavaScriptFromString:@"document.getElementsByName('cancel')[0].onclick = function onclick(event) { window.location.href = 'fbconnect://cancel'; return false;}"]; [_spinner stopAnimating]; _spinner.hidden = YES; self.title = [_webView stringByEvaluatingJavaScriptFromString:@"document.title"]; [self updateWebOrientation]; } </code></pre> <p>Its works fine:</p> <p>But There is one more issue If Facebook Change html then this code will no longer work. My solution to this problem is that : </p> <p>Instead of putting JavaScript statically just get it from server at regular interval or similer mechanism </p> <pre><code>[_webView stringByEvaluatingJavaScriptFromString://We need to control this javascript from server//]; </code></pre> <p>so in future we can change this javascript instead of updating whole application.</p> <p>I hope in future this bug will be solved <a href="http://bugs.developers.facebook.net/show_bug.cgi?id=5958" rel="nofollow">http://bugs.developers.facebook.net/show_bug.cgi?id=5958</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload