This is not a question of redundancy! My problems are very similar to facebook login using FBloginView not showing up in ios 6 But it is not!
I tried translating the HelloFacebookSample code into my project. I carefully checked and compared both codes. There is no critical difference.
- (void)viewDidLoad
{
[super viewDidLoad];
FBLoginView *loginView = [[FBLoginView alloc] init];
loginView.frame = CGRectOffset(loginView.frame, 45, 45);
loginView.delegate = self;
[self.view addSubview:loginView];
[loginView sizeToFit];
}
And the delegate
#pragma mark - FBLoginViewDelegate
- (void)loginViewShowingLoggedInUser:(FBLoginView *)loginView {
self.facebookLogInButton.enabled = YES;
}
- (void)loginViewFetchedUserInfo:(FBLoginView *)loginView
user:(id<FBGraphUser>)user {
self.labelFirstName.text = [NSString stringWithFormat:@"Hello %@!", user.first_name];
self.profilePic.profileID = user.id;
self.loggedInUser = user;
}
- (void)loginViewShowingLoggedOutUser:(FBLoginView *)loginView {
BOOL canShareAnyhow = [FBNativeDialogs canPresentShareDialogWithSession:nil];
self.facebookLogInButton.enabled = canShareAnyhow;
self.profilePic.profileID = nil;
self.labelFirstName.text = nil;
self.loggedInUser = nil;
}
The CAN application runs on the simulator, but I do not see the facebook blue login button.
I re-imported FacebookSDK.framework, FacebookSDKResources.bundle, etc. Similarly, with sample code. It still does not show the Facebook login button.
Has anyone solved this problem?
EDIT -
I found a new track
: '//Digiflex/Dropbox/Dev/XxxxXxxx Project/XxxxXxxx/../../Facebook API SDK/FacebookSDK/FacebookSDK.framework//A//FacebookSDKResources.bundle
?
( "wrapper.plug-in" )