I've got two targets in my project (one i'm using for iOS builds, second for apportable builds).
In iOS target added Facebook sdk without framework (by adding sources).
In Apportable target I'm trying to Integrate ApportableFacebookSDK:
All compiles fine, but when I'm trying to log in Facebook, application stuck and in log cat I see infinite flow of lines:
W/CoreFoundation﹕ +[__NSCFType privateCookie]: unrecognized selector sent to instance 0x7bd7ced0; set a breakpoint on NSUnrecognizedForwarding to debug
W/CoreFoundation﹕ +[__NSCFType privateCookie]: unrecognized selector sent to instance 0x7bd7ced0; set a breakpoint on NSUnrecognizedForwarding to debug
W/CoreFoundation﹕ +[__NSCFType privateCookie]: unrecognized selector sent to instance 0x7bd7ced0; set a breakpoint on NSUnrecognizedForwarding to debug
W/CoreFoundation﹕ +[__NSCFType privateCookie]: unrecognized selector sent to instance 0x7bd7ced0; set a breakpoint on NSUnrecognizedForwarding to debug
to log in I'm using next code:
if ( [[FBSession activeSession] state] == FBSessionStateOpen
|| [[FBSession activeSession] state] == FBSessionStateOpenTokenExtended) {
[[FBSession activeSession] closeAndClearTokenInformation];
} else {
NSLog(@"FBFBFBFBFBFBFB: loginig");
[FBSession openActiveSessionWithReadPermissions:@[@"public_profile", @"user_friends"]
allowLoginUI:withUI
completionHandler:^(FBSession *session, FBSessionState state, NSError *error){}}];
}
Also Log(@"FBFBFBFBFBFBFB: loginig") is appearing in log cat before first +[__NSCFType privateCookie]: unrecognised selector...
What i've done wrong? How can I fix It?
Is there other way to integrate Facebook in apportable project?
Maybe BridgeKit? (But i don't know how to implement Android method OnActivityResult() by using BridgeKit)