-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: initializeSDK
deprecation
#1731
Comments
Any updates on this? I have the same use case.... |
This was a difficult API decision. I agree with your assessment that, "it feels unintuitive to start the SDK with the method named after the I realized that it would be more effort and kind of kludgy to use the
Of course, but I felt it was important to simplify the SDK by having a single point of initialization. To your earlier point, the current API doesn't make sense outside of the |
Based on the feedback we decided to reintroduce the initialize method in 11.1.0, see: CHANGELOG. It's important to note that there is no intentional support for extensions at this time. The SDK has been built over many years with the assumption that an instance of I imagine we will want to move towards full support of extensions but this will take some time and deliberation to get right. In any case can close this issue. Thanks for participating in the process! |
For anyone upgrading from an older version of the SDK to v11 or v12 needing to use this.
is now
@joesus would it be possible for someone to go through the iOS Facebook SDK Docs and update them to match recent versions of the SDK? Pages like this one are really out of date at this point: |
They are still outdated today in 2024 |
The
initializeSDK
method was deprecated in the last release9.2.0
. See 813fa58The deprecation message states that one should use
application:didFinishLaunchingWithOptions:
instead.We have the use case that we do not initialize the Facebook SDK in
UIApplicationDelegate.application:didFinishLaunchingWithOptions:
. Instead we do it at a later time when the user has given its consent.So when not in the
UIApplicationDelegate
life-cycle context it feels unintuitive to start the SDK with theFBSDKCoreKit.ApplicationDelegate.application:didFinishLaunchingWithOptions:
method named after theUIApplicationDelegate
life-cycle. Furthermore it requires to pass on the providedapplication
andlaunchOptions
to that later time.What are your thoughts about this? Did you consider keeping the
initializeSDK
as an instance method?The text was updated successfully, but these errors were encountered: