Facebook 应用邀请 iOS SDK 无法显示邀请 VC

Facebook app invitation iOS SDK can't display the Invitation VC

这是我的应用邀请代码:

private func inviteFriends() {

    let content = FBSDKAppInviteContent()
    content.appLinkURL = URL(string: "...")
    content.appInvitePreviewImageURL    = URL(string: "...")
    FBSDKAppInviteDialog.show(from: self, with: content, delegate: nil)
}

此代码工作正常,但如果我尝试添加这样的促销代码:

private func inviteFriends() {

    let content = FBSDKAppInviteContent()
    content.appLinkURL = URL(string: "...")
    content.appInvitePreviewImageURL    = URL(string: "...")
    content.promotionCode = "preview"
    content.promotionText = "Use the *preview* code to unlock the app"
    FBSDKAppInviteDialog.show(from: self, with: content, delegate: nil)
}

邀请 VC 不再显示(已调用函数但未显示任何内容)。我在这里错过了什么?

问题是我使用了像 * 这样的特殊字符,所以删除它会使应用程序正常工作我的最终代码是这样的:

private func inviteFriends() {

    let content = FBSDKAppInviteContent()
    content.appLinkURL = URL(string: "...")
    content.appInvitePreviewImageURL    = URL(string: "...")
    content.promotionCode = "preview"
    content.promotionText = "Use the preview code to unlock the app"
    FBSDKAppInviteDialog.show(from: self, with: content, delegate: nil)
}