ios - FBLoginView Button Tiling -
i have implemented fbloginview
on previous version of ios app, suited ios 6&7. recently, after ios 8 release, upgraded facebook framework latest version , below result of implementing same fbloginview
button.
i tried using previous version of facebook framework, still experience same problem.
below implementation if fbloginview
programmatically in code
self.fbbtn = [[fbloginview alloc] init]; self.fbbtn.frame = cgrectzero; self.fbbtn.readpermissions = @[@"public_profile", @"email"]; self.fbbtn.delegate = [facebookdelegatehelper sharedobject]; [self addsubview:self.fbbtn]; [self.fbbtn settranslatesautoresizingmaskintoconstraints:no];
what doing wrong?
the 1 work be:
fbloginview *loginview = [[fbloginview alloc] init]; loginview.frame = cgrectmake(x, y, w, h); // fbbutton position loginview.delegate = [facebookdelegatehelper sharedobject]; [loginview siazetofit]; [self addsubview:loginview];
this should make button appear. rest of code in delegate fbloginviewdelegate
has been declared
there example named hellofacebooksdk in facebooksdk reference.
Comments
Post a Comment