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: