2
votes

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!

4
I don't know the exact problem but please take a look on these discussion may it helps you: stackoverflow.com/questions/12838118/… & stackoverflow.com/questions/12601191/… & developers.facebook.com/docs/howtos/…Vishal

4 Answers

4
votes

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

9
votes

Are you sure you have the same bundle ID set in your Facebook app settings? A good way to validate is to use this code to print the bundle ID to the console and compare it with your app settings on Facebook:

NSLog(@"Bundle ID: %@",[[NSBundle mainBundle] bundleIdentifier]);
3
votes

Beware that your bundle ID is case sensitive!

0
votes

I Faced the same issue when i run my project in 3.5 inch simulator it shows the same error. It works fine in 4 inch simulator. I fixed this issue by going to my 3.5 inch simulator settings then i logged out from my Facebook account. then i re run the project it worked.