I´m trying to use Gigya-SDK to login in the app via facebook. The setup up on Facebook looks good and the native facebbook login without Gigya works fine. But when I call the Gigya method the completion handler after the successful login on the Facebook- Website is never be called.
Here is my very simple code:
[Gigya showLoginProvidersDialogOver:self providers:providers parameters:nil
completionHandler:^(GSUser *user, NSError *error) {
if (!error) {
NSLog(@"works");
}
else {
NSLog(@"Error: %@", error.userInfo);
// If the login was canceled by the user - do nothing. Otherwise, display an
error.
if (error.code != GSErrorCanceledByUser) {
NSLog(@"Error: %@", error.userInfo);
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Error"
message:@"An error has
occured. Please try again later"
delegate:nil
cancelButtonTitle:@"OK"
otherButtonTitles:nil];
[alert show];
}
}
}];
- iOS SDK: 8.1
- Facebbok-SDK: 3.20
- Gigya-SDK : 3.0.6