Facebook Share Dialogue显示Code = 100“操作无法完成。”

时间:2014-01-18 04:06:14

标签: ios facebook-graph-api share facebook-opengraph

共享打开的图形故事时会显示错误。 我没有在developer.facebook上找到相同的文档。

调用函数 -

-(void) openGraphTest
{
    NSDictionary* author = [self.video objectForKey:@"author"];
    NSString *description =  [NSString stringWithFormat: @"By %@", [author objectForKey:@"username"]];
    id<FBGraphObject> DiscoverObject =
    [FBGraphObject openGraphObjectForPostWithType:@"discovermeapp:talent"
                                            title:[NSString stringWithFormat: @"%@ - Episode %@",[[self.video objectForKey: @"video"] objectForKey: @"title" ],
                                                   [[self.video objectForKey: @"video"] objectForKey: @"episode_number"]]
                                            image:[[self.video objectForKey: @"video"] objectForKey: @"thumbnail_url"]
                                              url:[[self.video objectForKey: @"video"] objectForKey: @"share_url"]
                                      description:description];

    id<FBOpenGraphAction> postAction = (id<FBOpenGraphAction>)[FBGraphObject graphObject];
    [postAction setObject:DiscoverObject forKey:@"talent"];
   // [postAction setObject:@"true" forKey: @"fb:explicitly_shared"];


    [FBDialogs presentShareDialogWithOpenGraphAction:postAction
                                          actionType:@"me/discovermeapp:discover"
                                 previewPropertyName:@"Discover"
                                             handler:^(FBAppCall *call, NSDictionary *results, NSError *error) {
                                                 if(error) {
                                                     NSLog(@"Error: %@", error.description);
                                                 } else {
                                                     NSLog(@"Success!");
                                                 }
                                             }];
}

它会暂时打开Facebook应用程序,并返回到显示100错误的来电应用程序。

0 个答案:

没有答案