App closes after facebook login in IOS 5
Posted
by
Aromal Sasidharan
on Stack Overflow
See other posts from Stack Overflow
or by Aromal Sasidharan
Published on 2012-12-14T09:47:56Z
Indexed on
2012/12/14
11:04 UTC
Read the original article
Hit count: 188
I am using facebook sdk 3.1 framework
for my application. The login
process works successfully and returns to the app after facebook
login both in simulator(iOS 6.0 and 5.0)
and in iPad(iOS 6)
.
But When the same is deployed in IPad with IOS 5
, after login, it does not return back to my application and shows a blank white Screen or sometimes my application closes.
I dont know what went wrong in iOS 5
and facebook sdk 3.1 framework
, also i am not getting any logs to debug... Please help
Iam using this code for login
NSArray *permissions = [[NSArray alloc] initWithObjects:
//@"user_likes",
//@"read_stream",
@"publish_stream",
@"user_events",
@"read_friendlists",
@"user_birthday",
@"email",
nil];
[FBSession openActiveSessionWithPermissions:permissions allowLoginUI:YES
completionHandler:
^(FBSession *session,
FBSessionState state, NSError *error) {
NSLog(@"state %d", state);
[self sessionStateChanged:session state:state error:error];
}];
© Stack Overflow or respective owner