iOS SDK Version

FBSDKLiking

@protocolFBSDKLiking<NSObject>
The common interface for components that initiate liking.
See
FBSDKLikeButton
See
FBSDKLikeControl
  • The objectID for the object to like.
    This value may be an Open Graph object ID or a string representation of an URL that describes an Open Graph object. The objects may be public objects, like pages, or objects that are defined by your application.

    Declaration

    Objective-C
    @property(nonatomic,copy,readwrite)NSString*_NonnullobjectID;
    Swift
    varobjectID:String{getset}
  • The type of object referenced by the objectID.
    If the objectType is unknown, the control will determine the objectType by querying the server with the objectID. Specifying a value for the objectType is an optimization that should be used if the type is known by the consumer. Consider setting the objectType if it is known when setting the objectID.

    Declaration

    Objective-C
    @property(nonatomic,assign,unsafe_unretained,readwrite)FBSDKLikeObjectTypeobjectType;
    Swift
    varobjectType:LikeObjectType{getset}