I use this code on my app to start facebook login :
[FBSession openActiveSessionWithReadPermissions:nil allowLoginUI:YES
completionHandler:^(FBSession *session,
FBSessionState status,
NSError *error) {
NSLog(@"#####################");
// session might now be open.
[self sessionStateChanged:session state:status error:error];
}];
Safari start, but i got :
I read that this error is related to the URL key in the plist file, everything looks OK
Here are some settings of the facebook app :
This is very strange. Of course, i double check the fb ID and bundle identifier ...
Any idea ?
Thanks
UPDATE
I got this error message only on the simulator. On real device, i got another one :
You can see that i changed the app id from last time. I just create another facebook app (and i changed the bundle id as well)
Of course i double check that app id and bundle Id are same from my ios app and in the facebook app settings ... so why does it say that the app id is invalid ?