FBSDKAppInviteDialog Class Reference
Inherits from | NSObject |
Declared in | FBSDKAppInviteDialog.h |
Properties
content
The content for app invite.
@property (nonatomic, copy) FBSDKAppInviteContent *content
Declared In
FBSDKAppInviteDialog.h
Class Methods
showFromViewController:withContent:delegate:
Convenience method to show a FBSDKAppInviteDialog
+ (instancetype)showFromViewController:(UIViewController *)viewController withContent:(FBSDKAppInviteContent *)content delegate:(id<FBSDKAppInviteDialogDelegate>)delegate
Parameters
- viewController
A UIViewController to present the dialog from.
- content
The content for the app invite.
- delegate
The receiver’s delegate.
Declared In
FBSDKAppInviteDialog.h
showWithContent:delegate:
use showFromViewController:withContent:delegate: instead (Deprecated: use showFromViewController:withContent:delegate: instead)
+ (instancetype)showWithContent:(FBSDKAppInviteContent *)content delegate:(id<FBSDKAppInviteDialogDelegate>)delegate
Declared In
FBSDKAppInviteDialog.h
Instance Methods
canShow
A Boolean value that indicates whether the receiver can initiate an app invite.
- (BOOL)canShow
Return Value
YES if the receiver can show the dialog, otherwise NO.
Discussion
May return NO if the appropriate Facebook app is not installed and is required or an access token is required but not available. This method does not validate the content on the receiver, so this can be checked before building up the content.
See Also
Declared In
FBSDKAppInviteDialog.h
show
Begins the app invite from the receiver.
- (BOOL)show
Return Value
YES if the receiver was able to show the dialog, otherwise NO.
Declared In
FBSDKAppInviteDialog.h
validateWithError:
Validates the content on the receiver.
- (BOOL)validateWithError:(NSError *__autoreleasing *)errorRef
Parameters
- errorRef
If an error occurs, upon return contains an NSError object that describes the problem.
Return Value
YES if the content is valid, otherwise NO.
Declared In
FBSDKAppInviteDialog.h