1

试图在我的 iPhone 应用中发布 OPEN GRAPH Facebook Action。它返回对象类型的错误。虽然对象类型是正确的。不确定是什么问题...

NSMutableDictionary  *params = [NSMutableDictionary dictionaryWithObjectsAndKeys: 

                                facebookToken, @"facebook_access_token",
                                @"photo", @"type",
                                @"IMG_URL_HERE", @"url",
                                @"Test Title", @"title",
                                @"IMG_URL_HERE", @"image",
                                @"Test Description", @"description",
                                nil];


[delegate.facebook requestWithGraphPath: @"me/APP_SHARED_NAME:shared" andParams:params andHttpMethod: @"POST" andDelegate: self];

它返回此错误

Domain=facebookErrDomain Code=10000 "The operation couldn’t be completed. (facebookErrDomain error 10000.)" UserInfo=0x7fa78f0 {error=<CFBasicHash 0x7fa6b10 [0x1a0bb48]>{type = mutable dict, count = 3,

entries => 2 : {contents = "type"} = {contents = "Exception"} 3 : {contents = "message"} = {contents = "您尝试发布的操作无效,因为它没有指定任何引用对象。必须至少指定以下属性之一:照片。"} 6 : {contents = "code"} = 1611072 } }

有人对此有想法吗???

4

1 回答 1

0

对象应引用带有开放图形标签的公开 URL 。如果您认为这不是问题,请提供您的实际代码,以便我们确定。

于 2012-08-01T21:41:15.423 回答