Facebook blank message

I am having a strange problem with fb sdk for iphone. Until yesterday, everything was fine. I started getting an empty fb dialog while trying to send a message to the wall. If I click "Publish", it will be published perfectly, but the preview will not be visible! Tried to uninstall the application and also re-authorize in fb and nothing ... Any idea?

empty dialog

+7
source share
2 answers

With the same question: add your votes and comments to http://bugs.developers.facebook.net/show_bug.cgi?id=18760

this will help speed up the process

+2
source

Ok, I figured out some things, but I don't know if this helps anyone.

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 is loaded inside the facebook view. If I load the contents of the request URL like this ...

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

... write down the source variable, copy the contents inside the html document and upload it using the Firefox or Safari browser on my mac and it will display a dialog. This means that there is a dialogue, but web browsing cannot show it or anything like that.

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

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

If I write url.scheme, it will give me "https", which I think is wrong. I wonder if this should be "fbconnect" ?! If this is a problem, I think we cannot solve the problem on our own, as this is what Facebook needs to fix.

I hope this information is at least a little useful to you, and I hope this error is fixed soon!

Cheers, Raphael;)

+2
source

All Articles