我想在我的iOS应用程序中集成Facebook App Invite Dialog.
出于测试目的,我创建了测试应用程序并为其生成App Link: https://fb.me/1453356328318807
出于测试目的,我创建了测试应用程序并为其生成App Link: https://fb.me/1453356328318807
运行下一个代码:
FBSDKAppInviteContent *content =[[FBSDKAppInviteContent alloc] init]; content.appLinkURL = [NSURL URLWithString:@"https://fb.me/1453356328318807"]; //optionally set previewImageURL content.appInvitePreviewImageURL = [NSURL URLWithString:@"http://someimage-1200x628.jpg"]; // present the dialog. Assumes self implements protocol `FBSDKAppInviteDialogDelegate` [FBSDKAppInviteDialog showWithContent:content delegate:self];
显示应用邀请对话框,能够选择朋友并将邀请发送到我的应用程序.一切顺利,我调用了委托方法:
(void)appInviteDialog:(FBSDKAppInviteDialog *)appInviteDialog didCompleteWithResults:(NSDictionary *)results
结果:
{ didComplete = 1; }
但接收者没有得到通知. Receiver用户也是我的app Tester用户的注册用户,安装了原生Facebook App.