我想知道是否可以用“-感到兴奋”或“-与 TagFriend”将帖子发布到用户的墙上。我在文档中搜索,但没有找到任何方法。
我以这种方式发布状态:
NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObject:[NSString stringWithCString:szMessage encoding:NSUTF8StringEncoding] forKey:@"message"];
[FBRequestConnection startWithGraphPath:@"me/feed" parameters:params HTTPMethod:@"POST" completionHandler:^(FBRequestConnection *connection, id result, NSError *error) {
if ( error ) {
NSLog( @"post error: %@", [error localizedDescription] );
if ( pObject != NULL && failCallback != NULL ) {
(pObject->*failCallback)();
}
} else {
NSLog( @"post id: %@", result[@"id"] );
if ( pObject != NULL && successCallback != NULL ) {
(pObject->*successCallback)();
}
}
}];
有人知道方法吗?提前致谢!