Inherits from NSObject
Conforms to FBSDKCopying
NSSecureCoding
Declared in FBSDKAppInviteContent.h

Overview

A model for app invite.

Properties

appInvitePreviewImageURL

A URL to a preview image that will be displayed with the app invite

@property (nonatomic, copy) NSURL *appInvitePreviewImageURL

Discussion

This is optional. If you don’t include it a fallback image will be used.

Declared In

FBSDKAppInviteContent.h

appLinkURL

An app link target that will be used as a target when the user accept the invite.

@property (nonatomic, copy) NSURL *appLinkURL

Discussion

This is a requirement.

Declared In

FBSDKAppInviteContent.h

destination

Destination for the app invite.

@property FBSDKAppInviteDestination destination

Discussion

This is optional and for declaring destination of the invite.

Declared In

FBSDKAppInviteContent.h

previewImageURL

  • Warning:Use appInvitePreviewImageURL instead.
@property (nonatomic, copy) NSURL *previewImageURL

Declared In

FBSDKAppInviteContent.h

promotionCode

Promotional code to be displayed while sending and receiving the invite.

@property (nonatomic, copy) NSString *promotionCode

Discussion

This is optional. This can be between 0 and 10 characters long and can contain alphanumeric characters only. To set a promo code, you need to set promo text.

Declared In

FBSDKAppInviteContent.h

promotionText

Promotional text to be displayed while sending and receiving the invite.

@property (nonatomic, copy) NSString *promotionText

Discussion

This is optional. This can be between 0 and 80 characters long and can contain alphanumeric and spaces only.

Declared In

FBSDKAppInviteContent.h

Instance Methods

isEqualToAppInviteContent:

Compares the receiver to another app invite content. - Parameter content: The other content - Returns: YES if the receiver’s values are equal to the other content’s values; otherwise NO

- (BOOL)isEqualToAppInviteContent:(FBSDKAppInviteContent *)content

Declared In

FBSDKAppInviteContent.h