Facebook api ios-sdk, delegates not working, fbDidLogin not called -


I have a problem with the latest IOS SDK. I have successfully logged in and application but delegation methods such as FBDI dog etc. The call is not made.

If it is done in a single controller file without all the controllers and it is working but if I do not have many controllers it is working now

I Using self-written class FacebookFetchter to deal with Facebook.

  // FacebookFetchter is .h #import Foundation / Foundation. H & gt; #import "FBConnect.h" @interface FacebookFetchter: NSObject & LT; FBDialogDelegate, FBSessionDelegate, FBRequestDelegate & gt; { Facebook Facebook; FacebookFetchter * facebookFetcher; } @ Property (Nonomatic, Retaining) IBOutlet UIWindow * Window; @Property (Retaining) Facebook * Facebook; @Property (Retention) Facebook Fitfighter * facebookFetcher; @end   


  // FacebookFetchter.m #import "FacebookFetchter.h" @implementation FacebookFetchter @synthesize facebookFetcher, Facebook, - (Zero ) Login {NSLog (@ "Facebook login ..."); Facebook = [[Facebook invoke] initWithAppId: @ "..."]; NSArray * permissions = [[NSArray arrayWithObjects @, *, *, *, *, ',', ' "User_about_me", @ "manage_friendlists", @ "read_friendlists", @ "user_birthday", @ "friends_birthday", zero];]; [Facebook authorized: permissions representative: self]; } ... - (zero) fbDidLogin {NSLog (@ "Aerofgraich Eingelogg ...."); } ... @end   

In my rep, I have implemented this and I also set up the fbapp_id url scheme

  with the plist - (bool ) Application: (UIApplication *) Application Handle Open URL: (ns URL *) URL {nslog ("app delegate handle open url"); Return [[[Settings facebookFetcher] facebookFetcher] handleOpenURL: url]; }   

There settings are my views controller:

  // settings.h @interface Settings: UIViewController {FacebookFetchter * facebookFetcher; //Facebook Facebook; } @protect (retention) Facebook Fitfighter * facebookFetcher; - Sync (IBAction); @end //settings.m @ signatures facebookfetcher; // In this verb Facebook login is called - (IBAction) Sync {NSLog (@ "Sync ..."); FacebookFetcher = [[Facebook Faitter Elok] Init]; [FacebookFetcher login]; }   

Any suggestions ??

Thank you!

I just had this problem and I believe I got your solution. When you create an app on Facebook, you need to edit your app settings to allow for the native iOS app. The selected iOS bundle ID must match your bundle ID in the app you create. Facebook states that they check this before authorizing your app. The funny thing is that if you remove the Facebook app from the device and then try to authenticate it, then it uses a web browser and it appears that this "security" completely repeats Facebook does not return an error message So it was a lot of fun to track down. I thought I would remove this answer from there and hopefully save some future gods in the future. I am creating a mother. I hope it helps.

Comments