Ich versuche zu Facebook ein gemeinsam genutztes Bild, und ich brauche, dass der App-Name in dem gemeinsamen Beitrag in FacebookNicht Bild sehen nach gemeinsamen Artikel zu Facebook mit FBSDKShareOpenGraphObject
dies sein wurde, ist der Code:
FBSDKSharePhoto *photo = [[FBSDKSharePhoto alloc] init];
UIImage *image1 = [GeneralMethods imageConvertToSizeWithImage:postImageView.image scaledToWidth:300];
photo.image = [UIImage imageNamed:@"VImage.png"];
photo.userGenerated = YES;
NSDictionary *properties = @{
@"og:type": @"article",
@"og:title": @"new item",
@"og:description": @"bla bla",
// @"og:image": @[photo],
};
FBSDKShareOpenGraphObject *object = [FBSDKShareOpenGraphObject objectWithProperties:properties];
// [object setPhoto:photo forKey:@"og:image"];
// Create an action
FBSDKShareOpenGraphAction *action = [[FBSDKShareOpenGraphAction alloc] init];
action.actionType = @"news.publishes";
[action setObject:object forKey:@"article"];
// 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 = @"article";
[FBSDKShareDialog showFromViewController:ParetDelaget withContent:content delegate:self];
dies ist Facebook Vorschau-Seite mit dem Bild, das ich hinzufügen:
dies die Post in meinem Facebook Wand ohne Bild ist:
was ich falsch gemacht?
dank hilft es hilft (-: –