FBSDKLoginButton
@interfaceFBSDKLoginButton
A button that initiates a log in or log out flow upon tapping.
FBSDKLoginButton
works with FBSDKProfile.currentProfile
to determine what to display, and automatically starts authentication when tapped (i.e., you do not need to manually subscribe action targets).Like
FBSDKLoginManager
, you should make sure your app delegate is connected to FBSDKApplicationDelegate
in order for the button’s delegate to receive messages.FBSDKLoginButton
has a fixed height of 30
pixels, but you may change the width. initWithFrame:CGRectZero
will size the button to its minimum frame.