FBSDK回调URL和“验证令牌”值应为什么 设置网络挂钩以使用Messenger?
我需要为应用程序设置Messenger链接,以将按钮连接到打开Messenger窗口,以将按钮的邀请发送给选定的朋友。
相应.xib文件中“通过Facebook邀请”按钮的相应代码为
- (IBAction)handleFacebookShare:(id)sender {
// SLComposeViewController *controller = [SLComposeViewController composeViewControllerForServiceType:SLServiceTypeFacebook];
// NSString *message = [SocialShareHelper messageFBFromUser:[BMUserManager sharedInstance].selfProfile.username];
// [controller setInitialText:message];
// [controller addURL:[NSURL URLWithString:[[BMUserManager sharedInstance] shareAppLink]]];
// [controller addImage:[UIImage imageNamed:@"share_logo"]];
// [controller setCompletionHandler:[self createGAIHandler:@"social" forAction:@"facebook"]];
//
// [self presentViewController:controller animated:YES completion:nil];
FBSDKAppInviteContent *content =[[FBSDKAppInviteContent alloc] init];
content.appLinkURL = [NSURL URLWithString:@"https://fb.me/**"];
//optionally set previewImageURL
content.appInvitePreviewImageURL = [NSURL URLWithString:@"http://**"];
// present the dialog. Assumes self implements protocol `FBSDKAppInviteDialogDelegate`
[FBSDKAppInviteDialog showFromViewController:self withContent:content delegate:self];
任何专家都可以提供一些初步提示,说明从哪里开始调试从应用程序内的按钮到用户的Messenger应用程序的连接吗?
最佳