FBSDKAppInviteDialog不起作用

时间:2016-01-28 06:14:38

标签: ios objective-c fbsdksharekit

我正在实施app邀请朋友

但它给了我以下错误

enter image description here

2 个答案:

答案 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