在iOS上发布到/ me / feed时,获取msg =(#100)链接格式不正确

时间:2015-01-14 17:09:12

标签: ios facebook applinks

我正在试图让我的应用程序在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 params     {     app = numerictestid;     link =" urlschemestring:// play / content?contentId = 1&#34 ;;     message = cohggjfkhf;     picture =" http://img.youtube.com/vi/opmApx_el-U/mqdefault.jpg&#34 ;;     }

在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>

1 个答案:

答案 0 :(得分:0)

我在Django应用程序中遇到了同样的问题,但原因是我提供了一个“本地”URL(/path/to/object)而不是一个完整的URL(http://domain.name/path/to/object);完整的URL前缀必须包含在FB应用程序设置中。