Facebook 로그인을 Objective C 기반 응용 프로그램에 통합하려고합니다. 모든 단일 구성은 Facebook 개발자 문서에서 완료되었습니다.Facebook 로그인 빈 페이지 iOS 응용 프로그램
문제는 로그인보기 대신 빈보기가 표시된다는 것입니다. 이것은 모든 장치와 시뮬레이터에서도 발생합니다.
누군가이 문제를 해결하는 데 도움을 줄 수 있습니까?
FBSDKLoginManager *login = [[FBSDKLoginManager alloc] init];
[login
logInWithReadPermissions: @[@"public_profile",@"email"]
fromViewController:self
handler:^(FBSDKLoginManagerLoginResult *result, NSError *error) {
if (error) {
NSLog(@"Process error");
} else if (result.isCancelled) {
NSLog(@"Cancelled");
} else {
NSLog(@"Logged in");
}
}];
PLIST 구성
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLSchemes</key>
<array>
<string>fbXXXXXXXXXXXXXX</string>
</array>
</dict>
<key>FacebookAppID</key>
<string>XXXXXXXXXXXX</string>
<key>FacebookDisplayName</key>
<string>App Name Here</string>
<key>LSApplicationQueriesSchemes</key>
<array>
<string>fbapi</string>
<string>fbauth2</string>
</array>
당신이 –
@Sh_Khan 그냥 표준 로그인 코드로 질문을 업데이트 코드를 공유 할 수는 –
시도 이러한 추가를 snnipet) 당신의보기 컨트롤러에 로그인 버튼을 추가하는 것을 잊어 버린 것 같아요 –