Search code examples
objective-cfacebookios6

FBSDKLog: System authorization failed:


I have added facebook sdk for accessing the user account. But when user is already login in facebook via iOS 6 facebook then in my app on the very first page it must shows the alert that app is asking for profile permissions. For it I have added following code in app delegate

[FBSession openActiveSessionWithAllowLoginUI:true];

NSArray *permissions = [NSArray arrayWithObjects:
                        @"friends_about_me",nil];
[FBSession openActiveSessionWithReadPermissions:permissions allowLoginUI:true  
 completionHandler:^(FBSession *session, FBSessionState status, NSError *error) {
    if (error) {
        NSLog(@"Failure");
    }
}];

return YES;

}

-(BOOL)application:(UIApplication *)application openURL:(NSURL )url sourceApplication: (NSString) sourceApplication annotation:(id)annotation { return [FBSession.activeSession handleOpenURL:url]; }

I am getting the alert properly. enter image description here

But when I click on OK button it gives me following error

FBSDKLog: System authorization failed:'The Facebook server could not fulfill this access request: remote_app_id does not match stored id '. This may be caused by a mismatch between the bundle identifier and your app configuration on the server at developers.facebook.com/apps.

But in my fb developer account , everything is fine. Please help me in resolving this issue.

Thanks!


Solution

  • Dear Sudha may be your bundle id is not confirmed yet from all server of facebook. You have to wait for it.