我正在尝试使用以下代码向我的 Facebook 朋友发送应用邀请一切正常,但朋友无法收到来自我的 Facebook 应用邀请的任何通知。
FBSDKAppInviteContent *content =[[FBSDKAppInviteContent alloc] init];
content.appLinkURL = [NSURL URLWithString:@"https://fb.me/myappid"];
//optionally set previewImageURL
content.appInvitePreviewImageURL = [NSURL URLWithString:@"https://www.example.com/my_invite_image.jpg"];
// present the dialog. Assumes self implements protocol `FBSDKAppInviteDialogDelegate`
FBSDKAppInviteDialog *inviteDialog = [FBSDKAppInviteDialog showFromViewController:self withContent:content delegate:self];