我寫的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