我正在努力让我的应用程序与 iOS 上的 AppLinks 一起工作。当我尝试发布到 /me/feed 时,我收到一个错误,并且“msg = (#100) 链接格式不正确”。我知道它“应该”工作,因为我编写了第二个调用我的应用程序调用 UIApplication:openURL 并且它工作得很好。我知道我的链接格式正确。这是发布帖子的代码:
[FBRequestConnection startWithGraphPath:@"/me/feed"
parameters:params HTTPMethod:@"POST"
completionHandler:^(FBRequestConnection *connection, id result, NSError *error) {
参数是: (lldb) po 参数 { app = numerictestid; 链接 = "urlschemestring://play/content?contentId=1"; 消息 = cohggjfkhf;图片=“ http://img.youtube.com/vi/opmApx_el-U/mqdefault.jpg ”;}
在 plist 中是以下内容:
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLName</key>
<string>com.companyname.Appname</string>
<key>CFBundleURLSchemes</key>
<array>
<string>fbnumericaltestid </string>
</array>
</dict>
</array>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>FacebookAppID</key>
<string>numericaltestid </string>
<key>FacebookUrlSchemeSuffix</key>
<string>urlschemestring </string>
<key>FacebookDisplayName</key>
<string>Appname</string>