This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Foundation | |
| import AuthenticationServices | |
| import SafariServices | |
| import FacebookCore | |
| // This helper is a workaroung for the issue in https://github.com/facebook/facebook-ios-sdk/issues/2387 | |
| // Starting with new FBSDK 17.0.0, the login method is not working as expected when the user has not given IDFA consent | |
| // The workaround is to use ASWebAuthenticationSession to open the SafariViewController to perform the login manually | |
| public class FacebookSignInHelper: NSObject, ASWebAuthenticationPresentationContextProviding { |
OlderNewer