我写的iPhone Facebook应用程序,但是当我发送到发表评论我得到以下错误的请求:张贴评论Facebook的结果在“用户不可见”的错误
failed with error: Error Domain=api.facebook.com Code=210 "User not visible" UserInfo=0x5a986b0 {request_args=(
{
key = text;
value = "Test comment";
},
{
key = format;
value = XML;
},
{
key = "post_id";
value = "100001297086328_132682710102963";
},
{
key = "call_id";
value = 1279912620;
},
{
key = v;
value = "1.0";
},
{
key = "api_key";
value = XXXXXXXXXXXXXXXXXXXXXXX;
},
{
key = method;
value = "facebook.stream.addComment";
},
{
key = "session_key";
value = "XXXXXXXXXXXXXXXXXXXXXXXXXX";
},
{
key = sig;
value = XXXXXXXXXXXXXXXXXXXXXXXXXXX;
}
当我尝试在http://developers.facebook.com/docs/reference/rest/stream.addComment上用相同的用户和facebook应用程序使用测试控制台评论同一篇文章,它工作得很好。
我现在的权限是:read_stream,publish_stream,read_friendlists
我使用该请求的代码是:
-(void)postComment:(NSString *)comment forPost:(NSString *)postID {
NSLog(@"postComment called");
NSLog(@"comment is: %@", comment);
NSLog(@"post ID is: %@", postID);
currentRequest = @"post comment";
NSDictionary *params = [NSDictionary dictionaryWithObjectsAndKeys:
comment, @"text",
postID, @"post_id",
nil];
[[FBRequest requestWithDelegate:self] call:@"facebook.stream.addComment" params:params];
}
我可以 “喜欢” 同一个岗位。我不知道为什么这不起作用。
如果情况并非如此,那么它在控制台中也不起作用。 – tomdemuyt 2012-12-02 13:14:57