I cant find FBSDKLoginManager class in login kit.
nickqlx opened this issue · comments
Checklist before submitting a bug report
- I've updated to the latest released version of the SDK
- I've searched for existing GitHub issues
- I've looked for existing answers on Stack Overflow, the Facebook Developer Community Forum and the Facebook Developers Group
- I've read the Code of Conduct
- This issue is not security related and can safely be disclosed publicly on GitHub
Xcode version
15.4
Facebook iOS SDK version
17.0.2
Dependency Manager
Prebuilt Binaries
SDK Framework
Login
Goals
I want to process the login flow and follow the steps mentioned on the developer portal. I am working on my old Objective-C project. I am not able to use FBSDKLoginManager.
Expected results
I want to implement the login flow.
Actual results
![Screenshot 2024-06-20 at 12 32 30 PM](https://private-user-images.githubusercontent.com/6978794/341306375-b3b6c3ab-749f-468f-b5d8-5f1728d9b3bd.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE2NTMzNjQsIm5iZiI6MTcyMTY1MzA2NCwicGF0aCI6Ii82OTc4Nzk0LzM0MTMwNjM3NS1iM2I2YzNhYi03NDlmLTQ2OGYtYjVkOC01ZjE3MjhkOWIzYmQucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcyMiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MjJUMTI1NzQ0WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9OTU0NWQwMGVhNTlkN2U5NjVjMjE3NWQyYzE2ZjdiMDg3ZDAyZmU5ZDFjNjMwZjVjNTJiNTNhMjM0YzRlNjBiNyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.4_RxNYwZnG_QvLCL_gOThw4ydPe2SwVknAD37T0S454)
Steps to reproduce
No response
Code samples & details
// INSERT YOUR CODE HERE
FBSDKLoginManager *login = [[FBSDKLoginManager alloc] init];
FBSDKLoginConfiguration *configuration = [[FBSDKLoginConfiguration alloc]
initWithPermissions:@[@"public_profile", @"email"]
tracking:FBSDKLoginTrackingLimited];
[login logInFromViewController:self
configuration:configuration
completion:^(FBSDKLoginManagerLoginResult * _Nullable result, NSError * _Nullable error)
{
}];
Please share the demo app in Objective C if anyone has implemented the latest version of the SDK.
Use this:
#import <FBSDKLoginKit/FBSDKLoginKit-Swift.h>
instead of this:
#import <FBSDKLoginKit/FBSDKLoginKit.h>
This worked for me. I think meta folks are migrating the code to a package where it can be used by swift also.
Use this:
#import <FBSDKLoginKit/FBSDKLoginKit-Swift.h>
instead of this:#import <FBSDKLoginKit/FBSDKLoginKit.h>
This worked for me. I think meta folks are migrating the code to a package where it can be used by swift also.
Thank you so much.