I have a problem with the latest iOS sdk. I successfully log in and the application returns, but delegation methods like fbDidLogin etc. are not called.
If you tried everything in one delegate file without any controllers and got it working. But if I have multiple controllers, it no longer works /
I use my own written FacebookFetchter class to work with Facebook.
//FacebookFetchter.h #import Foundation/Foundation.h>
// FacebookFetchter.m
In my case, I implemented this, and I also configured plist using the fbapp_id URL scheme
- (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url { NSLog(@"AppDelegate handleOpenURL"); return [[[settings facebookFetcher] facebookFetcher] handleOpenURL:url]; }
there the settings are my view controller:
//settings.h @interface Settings : UIViewController { FacebookFetchter *facebookFetcher; //Facebook *facebook; } @property (retain) FacebookFetchter *facebookFetcher; - (IBAction)sync; @end //settings.m @synthesize facebookFetcher; //within this action the facebook login is called - (IBAction)sync{ NSLog(@"sync..."); facebookFetcher = [[FacebookFetchter alloc] init]; [facebookFetcher login]; }
Any suggestions
Thanks!
source share