在我的iOS应用程序中登录到FB后,我有一个“通过Facebook邀请”按钮,点击后,打开Facebook信使窗口或与Facebook好友的列表发送我决定输入的任何内容以选择朋友(即我内部的信使)应用程序) .

我相应的.xib文件中的相关“通过Facebook邀请”代码是

<button opaque="NO" contentMode="scaleToFill" misplaced="YES" contentHorizontalAlignment="left" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="GP8-Yf-a9u">
                                    <rect key="frame" x="22" y="6" width="275" height="50"/>
                                    <color key="backgroundColor" red="0.19607843459999999" green="0.30980393290000002" blue="0.52156865600000002" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
                                    <constraints>
                                        <constraint firstAttribute="width" constant="275" id="9hT-4c-YgK"/>
                                        <constraint firstAttribute="height" constant="50" id="OEW-6u-xyi"/>
                                    </constraints>
                                    <fontDescription key="fontDescription" name="ProximaNova-Bold" family="Proxima Nova" pointSize="17"/>
                                    <inset key="titleEdgeInsets" minX="40" minY="0.0" maxX="0.0" maxY="0.0"/>
                                    <inset key="imageEdgeInsets" minX="20" minY="0.0" maxX="0.0" maxY="0.0"/>
                                    <state key="normal" title="Invite via Facebook" image="share_facebook">
                                        <color key="titleColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
                                    </state>
                                    <userDefinedRuntimeAttributes>
                                        <userDefinedRuntimeAttribute type="number" keyPath="layer.cornerRadius">
                                            <integer key="value" value="4"/>
                                        </userDefinedRuntimeAttribute>
                                    </userDefinedRuntimeAttributes>
                                    <connections>
                                        <action selector="handleFacebookShare:" destination="-1" eventType="touchUpInside" id="ZRQ-5x-fbd"/>
                                    </connections>
                                </button>

其中对应的handleFacebookShare:对于上面各自的ViewController.m中

- (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应用程序的连接?

如果我使用web-hook,那么FBSDK Callback URL和Verify Token值应该用于设置web-hook以使用messenger?

任何人都可以解释上面的代码吗?

(我没有设置一个带有机器人的页面来回答查询 . )