ios - Failing to open active session after updating Facebook SDK to 3.5 -
after updating facebook sdk 3.5, when trying perform openactivesessionwithreadpermissions operation fails. here snippet opening session , handling callback:
[fbsession openactivesessionwithreadpermissions:@[@"email", @"user_hometown", @"user_location", @"user_birthday"] allowloginui:yes completionhandler: ^(fbsession *session, fbsessionstate state, nserror *error) { switch (state) { case fbsessionstatecreatedtokenloaded: case fbsessionstateopentokenextended: case fbsessionstateopen: { completion(true); break; } case fbsessionstateclosed: case fbsessionstateclosedloginfailed: completion(false); [fbsession.activesession closeandcleartokeninformation]; break; default: break; } }];
i end in fbsessionstateclosedloginfailed case , fbsklog follows:
fbsdklog: cannot use facebook app or safari authorize, fb123456789012345 not registered url scheme
i had same problem (facebook sdk 3.5.1)
my url scheme facebook on item 1 in info.plist url schemes. problem fixed moving item 0.
Comments
Post a Comment