Inherits from UIControl
Conforms to FBSDKLiking
Declared in FBSDKLikeControl.h

Overview

@class FBSDKLikeControl

Taps on the like button within this control will invoke an API call to the Facebook app through a fast-app-switch that allows the user to like the object. Upon return to the calling app, the view will update with the new state and send actions for the UIControlEventValueChanged event.

Properties

foregroundColor

The foreground color to use for the content of the receiver.

@property (nonatomic, strong) UIColor *foregroundColor

Declared In

FBSDKLikeControl.h

likeControlAuxiliaryPosition

The position for the auxiliary view for the receiver.

@property (nonatomic, assign) FBSDKLikeControlAuxiliaryPosition likeControlAuxiliaryPosition

Declared In

FBSDKLikeControl.h

likeControlHorizontalAlignment

The text alignment of the social sentence.

@property (nonatomic, assign) FBSDKLikeControlHorizontalAlignment likeControlHorizontalAlignment

Discussion

This value is only valid for FBSDKLikeControlStyleStandard with FBSDKLikeControlAuxiliaryPositionTop|Bottom.

Declared In

FBSDKLikeControl.h

likeControlStyle

The style to use for the receiver.

@property (nonatomic, assign) FBSDKLikeControlStyle likeControlStyle

Declared In

FBSDKLikeControl.h

preferredMaxLayoutWidth

The preferred maximum width (in points) for autolayout.

@property (nonatomic, assign) CGFloat preferredMaxLayoutWidth

Discussion

This property affects the size of the receiver when layout constraints are applied to it. During layout, if the text extends beyond the width specified by this property, the additional text is flowed to one or more new lines, thereby increasing the height of the receiver.

Declared In

FBSDKLikeControl.h

soundEnabled

If YES, a sound is played when the receiver is toggled.

@default YES

@property (nonatomic, assign, getter=isSoundEnabled) BOOL soundEnabled

Declared In

FBSDKLikeControl.h