[FBRequestConnection startForPostWithGraphPath:@"me"
graphObject:object
completionHandler:^(FBRequestConnection *connection,
id result,
NSError *error) {
// handle the result
if(!error){
NSLog(@" id %@",result);
NSMutableDictionary<FBGraphObject> *action = [FBGraphObject graphObject];
action[@"frame_pack"] = @"http://samples.ogp.me/669674679792128";
[FBRequestConnection startForPostWithGraphPath:@"me/com_scandino_photify:buy"
graphObject:action
completionHandler:^(FBRequestConnection *connection,
id result,
NSError *error) {
NSLog(@" id 2 %@",result); // handle the result
}];
}else{NSLog(@" id %@",result);
NSLog(@" errooooorrrr%@",error);}
}];
一切顺利,授予发布操作权限。没有显示错误,但图表故事未发布。给出了代码。这里id返回true,id 2返回Null。