Локальный UIImage не отображается в истории открытого графа Facebook

Я пытаюсь опубликовать локальную фотографию в истории открытого графа Facebook, но изображение не появляется.

введите здесь описание изображения

Этот код совпадает со страницей документации разработчиков Facebook. facebook_developers Open Graph iOS

FBSDKSharePhoto *photo = [[FBSDKSharePhoto alloc] init];
photo.image = [UIImage imageNamed:@"coffee-and-sunrise.jpg"];
// Optionally set user generated to YES only if this image was created by the user
// You must get approval for this capability in your app's Open Graph configuration
// photo.userGenerated = YES;

// Create an object
NSDictionary *properties = @{
                                @"og:type": @"books.book",
                                @"og:title": @"A Game of Thrones",
                                @"og:description": @"In the frozen wastes to the north of Winterfell, sinister and supernatural forces are mustering.",
                                @"books:isbn": @"0-553-57340-3",
                            };

FBSDKShareOpenGraphObject *object = [FBSDKShareOpenGraphObject objectWithProperties:properties];

// Create an action
FBSDKShareOpenGraphAction *action = [[FBSDKShareOpenGraphAction alloc] init];
action.actionType = @"books.reads";
[action setObject:object forKey:@"books:book"];

// Add the photo to the action. Actions
// can take an array of images.
[action setArray:@[photo] forKey:@"image"];

// Create the content
FBSDKShareOpenGraphContent *content = [[FBSDKShareOpenGraphContent alloc] init];
content.action = action;
content.previewPropertyName = @"books:book";

[FBSDKShareDialog showFromViewController:self
                  withContent:content
                  delegate:nil];

person kakashy    schedule 06.02.2016    source источник


Ответы (1)


Facebook знает, что это не работает на iOS, и пометил это как «не исправит». Невероятно волнительно, пожалуйста, выскажите свое беспокойство по поводу отчета об ошибке, который они подтвердили здесь.

person MilkmanGames    schedule 11.08.2016