打开图表操作IOS

时间:2012-08-01 21:10:47

标签: ios facebook opengraph

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

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 =&gt;     2:{contents =“type”} = {contents =“Exception”}     3:{contents =“message”} = {contents =“您尝试发布的操作无效,因为它未指定任何参考对象。必须至少指定以下属性之一:photo。”}     6:{contents =“code”} = 1611072 } }

任何人都有这个想法吗?

1 个答案:

答案 0 :(得分:0)

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