facebook post to wall dialog is empty

后端 未结 2 1367
情深已故
情深已故 2021-01-12 10:54

I\'m having a weird problem with fb sdk for iphone. It was working all fine till yesterday. I started getting an empty fb dialog when trying to post to wall. If I click Publ

相关标签:
2条回答
  • 2021-01-12 11:28

    Ok, I have figured some things out but I don't know if that helps anybody.

    There is a delegate method in FBDialog.m

    - (BOOL) webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request
      navigationType:(UIWebViewNavigationType)navigationType
    

    This method is called when the webview inside the facebook view is loaded. If I load the content of the url of the request like that...

    NSString *source = [NSString stringWithContentsOfURL:request.URL];
    

    ... log the source variable, copy the content inside a html document and load it with my Firefox or Safari Browser on my mac it shows up a dialog. That means, that the there is a dialog but the webview can't show it or something like that.

    The second thing I figured out, if you look further down in the method you see that there is a condition:

    if ([url.scheme isEqualToString:@"fbconnect"])
    

    if I log url.scheme it gives me "https" which I guess is wrong. I wonder if that shouldn't be "fbconnect" ?! If that should be the problem I guess we can't fix the problem ourselves, since that is something Facebook need to fix.

    I hope this information is at least a bit useful for you guys and I hope this bug is getting fixed soon!

    Cheers, Raphael ;)

    0 讨论(0)
  • 2021-01-12 11:41

    Having same issue: please add your votes and comments to http://bugs.developers.facebook.net/show_bug.cgi?id=18760

    this will help speed up the process

    0 讨论(0)
提交回复
热议问题