'Gigya swift sdk login with social providers getting issue: [facebook] can't login with WebView, install related sdk
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
Solution 1:[1]
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
Solution 2:[2]
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
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Sagi Shmuel |
| Solution 2 | Levi |
