答案 0 :(得分:4)
Facebook不再支持应用邀请,请参阅here。
从Facebook SDK 4.28及更高版本开始,将不再支持App Invites。以前版本的SDK仍然可以访问App Invites,但从2/6开始,将不再支持App Invites。
答案 1 :(得分:2)
不推荐使用OLD方法
文件:https://developers.facebook.com/docs/reference/ios/current/class/FBSDKAppInviteDialog/
新方法:
+ (instancetype)
showFromViewController: (UIViewController *)viewController
withContent: (FBSDKAppInviteContent *)content
delegate: (id<FBSDKAppInviteDialogDelegate>)delegate;
声明于:FBSDKAppInviteDialog.h
showWithContent:delegate:
+ (instancetype)
showWithContent: (FBSDKAppInviteContent *)content
delegate: (id<FBSDKAppInviteDialogDelegate>)delegate
__attribute__((deprecated("use showFromViewController: withContent:delegate: instead")));
Declared In: FBSDKAppInviteDialog.h