You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue is not security related and can safely be disclosed publicly on GitHub
Xcode version
16.0
Facebook iOS SDK version
17.4.0
Dependency Manager
Other / I don't know
SDK Framework
Login
Goals
When an iOS app uses Facebook login, why can’t it invoke the installed Facebook app for authorization, and instead opens a webpage (limited.facebook.com) within the app? I manually integrated version 17.4.0 of the Facebook SDK and developed the app using Objective-C. How can I enable direct invocation of the Facebook app for authorization login?
Expected results
I want Facebook login to directly use the installed app for authorization.
Actual results
Steps to reproduce
No response
Code samples & details
// Below is the code I use to initiate the login:
FBSDKLoginManager *fbLoginManager =[[FBSDKLoginManager alloc] init];
FBSDKLoginConfiguration *configuration =[[FBSDKLoginConfiguration alloc] initWithPermissions:@[@"public_profile"]
tracking:FBSDKLoginTrackingLimited
nonce:@"123"];
[fbLoginManager logInFromViewController:self configuration:configuration completion:^(FBSDKLoginManagerLoginResult * _Nullable result, NSError * _Nullable error){NSLog(@"facebook login result.grantedPermissions = %@,error = %@",result.grantedPermissions,error);
if (error){[SVProgressHUD showErrorWithStatus:TS(@"EE_DEV_NOT_LOGIN")];
NSLog(@"Process error");
}else if (result.isCancelled){[SVProgressHUD showErrorWithStatus:TS(@"login_cancel")];
NSLog(@"Cancelled");
}else{NSLog(@"Logged in");
[SVProgressHUD show];
NSString *userID =FBSDKProfile.currentProfile.userID;
self.tokenStr = userID;
self.retryLoginCount =0;
[self requestGetListFacebook];
}}];
The text was updated successfully, but these errors were encountered:
Checklist before submitting a bug report
Xcode version
16.0
Facebook iOS SDK version
17.4.0
Dependency Manager
Other / I don't know
SDK Framework
Login
Goals
When an iOS app uses Facebook login, why can’t it invoke the installed Facebook app for authorization, and instead opens a webpage (limited.facebook.com) within the app? I manually integrated version 17.4.0 of the Facebook SDK and developed the app using Objective-C. How can I enable direct invocation of the Facebook app for authorization login?
Expected results
I want Facebook login to directly use the installed app for authorization.
Actual results
Steps to reproduce
No response
Code samples & details
The text was updated successfully, but these errors were encountered: