Showing posts with label facebook. Show all posts
Showing posts with label facebook. Show all posts

Thursday, June 30, 2011

How to View HTML Source Code from UIWebView

While debugging a sudden Facebook iOS library defect (Blank Dialog presented), I needed to check the HTML code received from Facebook server. This is how to do it:

- (void)webViewDidFinishLoad:(UIWebView *)webView
{
   NSLog(@"%@",
    [webView stringByEvaluatingJavaScriptFromString:
    @"document.body.innerHTML"]);
}
Let's hope Facebook will quickly fix their faulty server-side code - and next time do better testing before a release...

Monday, January 24, 2011

How to Do Autologin to Facebook Using FBConnect

Trying to integrate Facebook connection into a non-disclosured iPhone application, suffering with lack of documentation. Wonder why everything has to be done the hard way... for example auto-login was missing from demo.

Grab FBConnect sources from FBConnect Github repository, fix the demo to work for you (instrunction how to do that were long, but excellent) - and then add these modifications in DemoAppViewController.m:

Thursday, January 20, 2011

Warning: Unable to read symbols for /Developer/Platforms/iPhoneOS.platform

Got mysterious warnings, while trying to debug an application in iPhone device. Used to work, but suddenly not any more! The only difference I can think of is that I'm using Facebook iOS SDK for the first time.