发表评论特定新闻提要FacebookSDK.framework

时间:2013-09-18 13:46:35

标签: ios objective-c facebook-graph-api

我正在尝试评论特定的Facebook帖子,但我得到了以下错误。

请帮帮我

NSString *myurl=[NSString stringWithFormat:@"https://graph.facebook.com/298723893602606/comments?message=\'This is my message\'&access_token=%@",FBSession.activeSession.accessToken];
    NSString  *theurl=[myurl stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
    NSMutableURLRequest *theRequest=[NSMutableURLRequest requestWithURL:[NSURL URLWithString:theurl]cachePolicy:NSURLRequestUseProtocolCachePolicy timeoutInterval:60.0];
    [theRequest setHTTPMethod:@"POST"];
    NSURLResponse *response;
    NSError* error12;
    NSData *data=[NSURLConnection sendSynchronousRequest:theRequest returningResponse:&response error:&error12];
    NSString *strResponse=[[NSString alloc]initWithData:data encoding:NSUTF8StringEncoding];
    NSLog(@"Response String=%@",strResponse);

错误:

Response String={"error":{"message":"(#200) Requires extended permission: publish_stream","type":"OAuthException","code":200}}

0 个答案:

没有答案
相关问题