Ios Facebook应用程序邀请无效

Ios Facebook应用程序邀请无效,ios,iphone,facebook,facebook-ios-sdk,Ios,Iphone,Facebook,Facebook Ios Sdk,我正在尝试添加facebook应用程序邀请,如下所示: let content:FBSDKAppInviteContent = FBSDKAppInviteContent() content.appLinkURL = URL(string: "https://fb.me/...") content.appInvitePreviewImageURL = URL(string: "http://...") let dialog = FBSDKAppI

我正在尝试添加facebook应用程序邀请,如下所示:

let content:FBSDKAppInviteContent = FBSDKAppInviteContent()
        content.appLinkURL = URL(string: "https://fb.me/...")
        content.appInvitePreviewImageURL = URL(string: "http://...")

        let dialog = FBSDKAppInviteDialog()
        dialog.content = content
        dialog.delegate = self
        dialog.fromViewController = self
        dialog.show()
相关Info.plist密钥:

<key>FacebookAppID</key>
<string>...</string>
<key>FacebookDisplayName</key>
<string>Blanket</string>
<key>LSApplicationQueriesSchemes</key>
<array>
    <string>fbapi</string>
    <string>fbapi20130214</string>
    <string>fbapi20130410</string>
    <string>fbapi20130702</string>
    <string>fbapi20131010</string>
    <string>fbapi20131219</string>
    <string>fbapi20140410</string>
    <string>fbapi20140116</string>
    <string>fbapi20150313</string>
    <string>fbapi20150629</string>
    <string>fbapi20160328</string>
    <string>fbauth</string>
    <string>fbauth2</string>
    <string>fb-messenger-api20140430</string>
    <string>fb-messenger-platform-20150128</string>
    <string>fb-messenger-platform-20150218</string>
    <string>fb-messenger-platform-20150305</string>
    <string>fbapi</string>
    <string>fb-messenger-api</string>
    <string>fbauth2</string>
    <string>fbshareextension</string>
</array>

<key>CFBundleURLTypes</key>
<array>
    <dict>
        <key>CFBundleURLName</key>
        <string>com.my.app</string>
        <key>CFBundleURLSchemes</key>
        <array>
            <string>fb...</string>
            <string>myappscheme</string>
        </array>
    </dict>
</array>
我不确定这个错误是什么意思,是facebook应用程序配置错误,还是iOS应用程序错误


相同的邀请在Android上有效,iOS应用程序已发布,并且已配置有效的iTunes URL。

我能够根据上述代码邀请朋友,因此请检查facebook应用程序id,并查看其输入是否正确。并查看您是否在p列表中提供了正确的url标识符和url方案。

您可以尝试一下,看看它是否在wifi中工作。facebook应用程序Invite中似乎有一个bug,它在移动数据中不起作用,但在使用wifi时起作用(得到与上面相同的错误)


如果它在wifi中工作,而在移动数据中不工作,请通过上面的链接报告以解决问题。

facebook团队已确认的漏洞正在尝试修复。可以从链接中看到。
{"error":"server_error","error_description":"Error retrieving application configuration."}