我想在Facebook页面(而不是用户)上发布消息。
在参数字典中,我添加了带有目标页面ID的“to”键,我总是收到一条错误消息。如果我用用户ID替换页面ID,代码就可以正常工作。
以下是代码:
NSMutableDictionary *params =
[NSMutableDictionary dictionaryWithObjectsAndKeys:
@"My Name", @"name",
@"My caption.", @"caption",
@"My Description.", @"description",
@"http://www.mylink.com.br", @"link",
@"http://www.mylink.com.br/logo.png", @"picture",
pageID, @"to",
nil];
[FBWebDialogs presentFeedDialogModallyWithSession:nil parameters:params handler:^(FBWebDialogResult result, NSURL *resultURL, NSError *error) {
}];
以下是错误消息:
An invalid target was specified: 219909461711. The target must be a page, event or user that the actor can post on the wall of.
任何帮助?
提前致谢! (: