Gigya swift sdk login with social providers getting issue: [facebook] can't login with WebView, install related sdk

540 Views Asked by At
Gigya.sharedInstance().showScreenSet(with:"Store-RegistrationLogin", viewController: self) { result in
            switch result {
            case .onLogin(let account):
                // onLogin event
                print("onLoginaccount-->",account)
            case .error(let event):
                // error event
                print("error-->",event)
            case .onAfterValidation(event: let event):
                print("onAfterValidation")
            case .onCanceled:
                print("onCanceled")
            }
        }

i am using above code Gigya screen set is loaded and Normal registration and login working fine but when i click on the Social providers App crash i am getting below issue [facebook] can't login with WebView, install related sdk. curently i am using xcode 13.1 and swift 5 Please help me @thanks

2

There are 2 best solutions below

1
On

Adding Facebook native login to your iOS app is mandatory if you want to login via Facebook. https://sap.github.io/gigya-swift-sdk/GigyaSwift/#facebook

5
On

Firstable following the instruction from Facebook: https://developers.facebook.com/docs/ios/getting-started/

once you have it works, following our instructions: https://sap.github.io/gigya-swift-sdk/GigyaSwift/#facebook

You can find our providers wrappers here: https://github.com/SAP/gigya-swift-sdk/releases/tag/core%2Fv1.3.1

Do not forget to configurate your provider in your console: https://help.sap.com/docs/SAP_CUSTOMER_DATA_CLOUD/8b8d6fffe113457094a17701f63e3d6a/5ff3bc8174da4542a61d03033af4877d.html