Open Graph Stories: One for Many Untitled Objects

I am trying to publish a one-many OG story. I checked the sample code, but this one creates a one-to-one story. How do I change this code to have a one-many option? (Custom action with 5 objects)

NSMutableDictionary<FBGraphObject> *object = [FBGraphObject openGraphObjectForPostWithType:@"" title:@"Sample" image:@"https://fbstatic-a.akamaihd.net/images/devsite/attachment_blank.png" url:@"http://samples.ogp.me/1234" description:@""];; [FBRequestConnection startForPostWithGraphPath:@"me/objects/..." graphObject:object completionHandler:^(FBRequestConnection *connection, id result, NSError *error) { }]; 

Thank you very much for your help! Arnaud

+4
source share

Source: https://habr.com/ru/post/1499499/


All Articles