facebook打开图形故事ID返回null

时间:2014-07-21 07:52:32

标签: ios xcode facebook facebook-opengraph

 [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。     

0 个答案:

没有答案