【发布时间】:2025-11-28 14:20:04
【问题描述】:
尝试在我的 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,
条目 => 2:{内容=“类型”}={内容=“例外”} 3 : {contents = "message"} = {contents = "您尝试发布的操作无效,因为它没有指定任何参考对象。必须至少指定以下属性之一:照片。"} 6:{内容=“代码”}=1611072 } }
有人对此有想法吗???
【问题讨论】:
标签: ios facebook facebook-opengraph